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 8db007bCopy full SHA for 8db007b
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
+typedef struct ST ST;
4
+typedef struct ST {
5
+ int id;
6
+ ST *c[];
7
+} ST;
8
+
9
+void testFunc(ST ** t) {
10
+ *t = malloc(sizeof(ST));
11
+ assert(sizeof(ST));
12
+}
13
14
+int main() {
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