]> andersk Git - splint.git/blobdiff - test/moreBufferTests2.expect
Made allocations involving sizeof work correctly (test/malloc.c).
[splint.git] / test / moreBufferTests2.expect
index 64a539e96ca9c749469faa5fb9f3114a66e30b67..f46f3b91f9ace814dacc05d5ac0d335315aa58c5 100644 (file)
@@ -1,9 +1,19 @@
 
 unknownsize.c: (in function uknSize1)
-unknownsize.c:9:3: Possible out-of-bounds store:
+unknownsize.c:9:3: Possible out-of-bounds store: c[9]
     Unable to resolve constraint:
     requires maxSet(c @ unknownsize.c:9:3) >= 9
      needed to satisfy precondition:
     requires maxSet(c @ unknownsize.c:9:3) >= 9
 
 Finished checking --- 1 code warning, as expected
+
+fixedArrayType.c: (in function fixedArrayTouch)
+fixedArrayType.c:9:3: Possible out-of-bounds store: buffer[sizeof(Array) - 1]
+    Unable to resolve constraint:
+    requires sizeof(Array) @ fixedArrayType.c:9:25 <= 10
+     needed to satisfy precondition:
+    requires maxSet(buffer @ fixedArrayType.c:9:3) >= sizeof(Array) @
+    fixedArrayType.c:9:25 - 1
+
+Finished checking --- 1 code warning, as expected
This page took 0.064786 seconds and 4 git commands to generate.