Skip to content

Commit 43d83ec

Browse files
author
Daniel Kroening
committed
more tests for NullPointer
1 parent 45c2854 commit 43d83ec

File tree

6 files changed

+35
-0
lines changed

6 files changed

+35
-0
lines changed
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public class NullPointer3 {
2+
3+
public static void main(String[] args)
4+
{
5+
throw null; // NULL pointer dereference
6+
}
7+
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
NullPointer3.class
3+
--pointer-check
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^ file NullPointer3.java line 5$
7+
^VERIFICATION FAILED$
8+
--
9+
^warning: ignoring
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public class NullPointer4 {
2+
3+
public static void main(String[] args)
4+
{
5+
int array[]=null;
6+
int s=array.length; // NULL pointer dereference
7+
}
8+
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
NullPointer4.class
3+
--pointer-check
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^ file NullPointer4.java line 6$
7+
^VERIFICATION FAILED$
8+
--
9+
^warning: ignoring

0 commit comments

Comments
 (0)