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 1ad790f commit 058714bCopy full SHA for 058714b
regression/cbmc/array_too_big/test.c
@@ -0,0 +1,13 @@
1
+#include <assert.h>
2
+#include <stdint.h>
3
+#include <stdlib.h>
4
+
5
+int main()
6
+{
7
+ size_t size;
8
+ size = SIZE_MAX;
9
+ uint8_t *ptr = malloc(size);
10
+ __CPROVER_assume(ptr != NULL);
11
+ uint8_t *ptr_end = ptr + size;
12
+ assert(ptr <= ptr_end);
13
+}
regression/cbmc/array_too_big/test.desc
@@ -0,0 +1,11 @@
+CORE
+test.c
+--pointer-overflow-check --pointer-check
+^EXIT=6$
+^SIGNAL=0$
+^array too large for flattening$
+--
+^VERIFICATION
+This test is to check that arrays that are too large are correctly
+error handled to prevent exceptions in other parts of the code.
0 commit comments