]> andersk Git - splint.git/blobdiff - test/moreBufferTests2.expect
noexpand always false.
[splint.git] / test / moreBufferTests2.expect
index 1119c82593e60030a410ac2191d94fdc3e98f4c6..a419bc1f967f3b6dd59caaa97d27bc0089b5e8cd 100644 (file)
@@ -1,7 +1,6 @@
 
 unknownsize.c: (in function uknSize1)
-unknownsize.c:9:3: Possible out-of-bounds store:
-    c[9]
+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:
@@ -10,8 +9,7 @@ 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:
-    buffer[sizeof(Array) - 1]
+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:
@@ -19,3 +17,12 @@ fixedArrayType.c:9:3: Possible out-of-bounds store:
     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.147646 seconds and 4 git commands to generate.