]> andersk Git - splint.git/blobdiff - test/moreBufferTests2.expect
noexpand always false.
[splint.git] / test / moreBufferTests2.expect
index c95ca7d03bc58d1be4ee8313420bdb3ce12a4dd7..a419bc1f967f3b6dd59caaa97d27bc0089b5e8cd 100644 (file)
@@ -1,6 +1,6 @@
 
 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:
@@ -9,11 +9,20 @@ unknownsize.c:9:3: Possible out-of-bounds store:
 Finished checking --- 1 code warning, as expected
 
 fixedArrayType.c: (in function fixedArrayTouch)
-fixedArrayType.c:9:3: Possible out-of-bounds store:
+fixedArrayType.c:9:3: Possible out-of-bounds store: buffer[sizeof(Array) - 1]
     Unable to resolve constraint:
-    requires sizeof(Array) @ fixedArrayType.c:9:23 <= 10
+    requires sizeof(Array) @ fixedArrayType.c:9:25 <= 10
      needed to satisfy precondition:
     requires maxSet(buffer @ fixedArrayType.c:9:3) >= sizeof(Array) @
-    fixedArrayType.c:9:23 - 1
+    fixedArrayType.c:9:25 - 1
+
+Finished checking --- 1 code warning, as expected
+
+initBlock.c: (in function main)
+initBlock.c:8:3: Likely out-of-bounds store: buf[10]
+    Unable to resolve constraint:
+    requires 9 >= 10
+     needed to satisfy precondition:
+    requires maxSet(buf @ initBlock.c:8:3) >= 10
 
 Finished checking --- 1 code warning, as expected
This page took 0.053807 seconds and 4 git commands to generate.