We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 432fb2e commit a8f2fc4Copy full SHA for a8f2fc4
regression/cbmc/array-bug-6230/main.c
@@ -0,0 +1,15 @@
1
+#include <stdint.h>
2
+#include <stdlib.h>
3
+
4
+struct inner {
5
+ uint32_t exts[32]; // 32 is the minimum to crash
6
+};
7
8
+struct outer {
9
+ struct inner ctx; // Nesting is necessary
10
11
12
+int main() {
13
+ struct outer *s = malloc(sizeof(struct outer));
14
+ if (s != NULL) s->ctx.exts[0] = 0;
15
+}
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