We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 432fb2e + 22e60dc commit bc2ee5bCopy full SHA for bc2ee5b
regression/cbmc/array-bug-6230/main.c
@@ -0,0 +1,19 @@
1
+#include <stdint.h>
2
+#include <stdlib.h>
3
+
4
+struct inner
5
+{
6
+ uint32_t exts[32]; // 32 is the minimum to crash
7
+};
8
9
+struct outer
10
11
+ struct inner ctx; // Nesting is necessary
12
13
14
+int main()
15
16
+ struct outer *s = malloc(sizeof(struct outer));
17
+ if(s != NULL)
18
+ s->ctx.exts[0] = 0;
19
+}
regression/cbmc/array-bug-6230/test.desc
@@ -0,0 +1,8 @@
+CORE
+main.c
+--malloc-may-fail --malloc-fail-null --pointer-check
+^EXIT=0$
+^SIGNAL=0$
+^VERIFICATION SUCCESSFUL$
+--
+A simplified test case that triggers issue #6230
0 commit comments