Skip to content

Commit bb6dfa0

Browse files
+ test failing to find a null pointer dereferencing when one of the classes is missing (pointer related assertions missing from the goto program)
1 parent a1baea5 commit bb6dfa0

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed
223 Bytes
Binary file not shown.
Binary file not shown.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class B {
2+
int j;
3+
}
4+
5+
class A {
6+
int i;
7+
B b;
8+
}
9+
10+
public class missing_class1 {
11+
public static void main(String[] args) {
12+
A a = new A();
13+
B b = a.b;
14+
int j = b.j; // NULL pointer dereference
15+
}
16+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
missing_class1.class
3+
--pointer-check
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)