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 fc0a0cd commit 7dca873Copy full SHA for 7dca873
regression/cbmc/pointer-to-struct-with-flexible-array-member-as-parameter-to-entry-point/main.c
@@ -0,0 +1,15 @@
1
+#include <assert.h>
2
+#include <stdlib.h>
3
+
4
+typedef struct ST ST;
5
+typedef struct ST
6
+{
7
+ // int id;
8
+ // ST *c[];
9
+ int c[];
10
+} ST;
11
12
+void testFunc(ST **t)
13
14
+ *t=malloc(sizeof(ST));
15
+}
regression/cbmc/pointer-to-struct-with-flexible-array-member-as-parameter-to-entry-point/test.desc
@@ -0,0 +1,10 @@
+KNOWNBUG
+main.c
+--function testFunc
+--
+^EXIT=0$
+^SIGNAL=0$
+^EXIT=134$
+Github issue #5093: Pointer to struct with flexible array member as parameter to entry point causes invariant violation
0 commit comments