]> andersk Git - splint.git/blame - test/moreBufferTests.expect
*** empty log message ***
[splint.git] / test / moreBufferTests.expect
CommitLineData
80ee600a 1
2unrecogCall.c: (in function foo)
3unrecogCall.c:8:3: Unrecognized identifier: bar
dcf136ce 4initialization.c: (in function initialization)
5initialization.c:5:10: Variable g declared but not used
03d670b6 6initialization.c:8:3: Possible out-of-bounds store. Unable to resolve
7 constraint:
4109ede4 8 requires maxSet(d @ initialization.c:3:14) >= 2
03d670b6 9 needed to satisfy precondition:
4109ede4 10 requires maxSet(f @ initialization.c:8:3) >= 2
03d670b6 11initialization.c:5:14: Possible out-of-bounds read. Unable to resolve
12 constraint:
4109ede4 13 requires maxRead(d @ initialization.c:3:14) >= 22
03d670b6 14 needed to satisfy precondition:
4109ede4 15 requires maxRead(e @ initialization.c:5:14) >= 22
dcf136ce 16simplifyTest.c: (in function fooSub)
03d670b6 17simplifyTest.c:3:3: Possible out-of-bounds store. Unable to resolve
18 constraint:
4109ede4 19 requires maxSet(s @ simplifyTest.c:3:3) >= i @ simplifyTest.c:3:5
03d670b6 20 needed to satisfy precondition:
4109ede4 21 requires maxSet(s @ simplifyTest.c:3:3) >= i @ simplifyTest.c:3:5
dcf136ce 22simplifyTest.c: (in function fooAdd)
03d670b6 23simplifyTest.c:10:3: Possible out-of-bounds store. Unable to resolve
24 constraint:
4109ede4 25 requires maxSet(s @ simplifyTest.c:10:3) >= i @ simplifyTest.c:10:5 + 2
03d670b6 26 needed to satisfy precondition:
4109ede4 27 requires maxSet(s @ simplifyTest.c:10:3) >= i @ simplifyTest.c:10:5 + 2
6e5d6478 28strncatNotReallyGood.c: (in function NotGoodfunc)
29strncatNotReallyGood.c:4:29: Passed storage buffer not completely defined
30 (*buffer is undefined): strncat (buffer, ...)
03d670b6 31strncatNotReallyGood.c:4:21: Possible out-of-bounds store. Unable to resolve
32 constraint:
4109ede4 33 requires maxRead(buffer @ strncatNotReallyGood.c:4:29) <= 0
03d670b6 34 needed to satisfy precondition:
4109ede4 35 requires maxSet(buffer @ strncatNotReallyGood.c:4:29) >= maxRead(buffer @
36 strncatNotReallyGood.c:4:29) + 255
37 derived from strncat precondition: requires maxSet(<parameter 1>) >=
38 maxRead(<parameter 1>) + <parameter 3>
80ee600a 39
6e5d6478 40Finished LCLint checking --- 8 code errors found
This page took 0.056938 seconds and 5 git commands to generate.