]> andersk Git - splint.git/blobdiff - test/moreBufferTests.expect
noexpand always false.
[splint.git] / test / moreBufferTests.expect
index 30c4d6e94f8c5f532ddb1b325c50595144cef505..64e5ccf5028ebe4c4c6b43031f5b491f38094477 100644 (file)
@@ -3,24 +3,24 @@ unrecogCall.c: (in function foo)
 unrecogCall.c:8:3: Unrecognized identifier: bar
 initialization.c: (in function initialization)
 initialization.c:5:10: Variable g declared but not used
-initialization.c:5:14: Possible out-of-bounds read:
+initialization.c:5:14: Possible out-of-bounds read: e[22]
     Unable to resolve constraint:
     requires maxRead(d @ initialization.c:3:14) >= 22
      needed to satisfy precondition:
     requires maxRead(e @ initialization.c:5:14) >= 22
-initialization.c:8:3: Possible out-of-bounds store:
+initialization.c:8:3: Possible out-of-bounds store: f[2]
     Unable to resolve constraint:
     requires maxSet(d @ initialization.c:3:14) >= 2
      needed to satisfy precondition:
     requires maxSet(f @ initialization.c:8:3) >= 2
 simplifyTest.c: (in function fooSub)
-simplifyTest.c:3:3: Possible out-of-bounds store:
+simplifyTest.c:3:3: Possible out-of-bounds store: s[i]
     Unable to resolve constraint:
     requires maxSet(s @ simplifyTest.c:3:3) >= i @ simplifyTest.c:3:5
      needed to satisfy precondition:
     requires maxSet(s @ simplifyTest.c:3:3) >= i @ simplifyTest.c:3:5
 simplifyTest.c: (in function fooAdd)
-simplifyTest.c:10:3: Possible out-of-bounds store:
+simplifyTest.c:10:3: Possible out-of-bounds store: s[i + 2]
     Unable to resolve constraint:
     requires maxSet(s @ simplifyTest.c:10:3) >= i @ simplifyTest.c:10:5 + 2
      needed to satisfy precondition:
@@ -29,6 +29,7 @@ strncatNotReallyGood.c: (in function NotGoodfunc)
 strncatNotReallyGood.c:4:29: Passed storage buffer not completely defined
                                 (*buffer is undefined): strncat (buffer, ...)
 strncatNotReallyGood.c:4:21: Possible out-of-bounds store:
+    strncat(buffer, str, sizeof((buffer)) - 1)
     Unable to resolve constraint:
     requires maxRead(buffer @ strncatNotReallyGood.c:4:29) <= 0
      needed to satisfy precondition:
@@ -37,4 +38,4 @@ strncatNotReallyGood.c:4:21: Possible out-of-bounds store:
      derived from strncat precondition: requires maxSet(<parameter 1>) >=
     maxRead(<parameter 1>) + <parameter 3>
 
-Finished LCLint checking --- 8 code errors found, as expected
+Finished checking --- 8 code warnings, as expected
This page took 0.11883 seconds and 4 git commands to generate.