]> andersk Git - splint.git/blame - test/moreBufferTests.expect
Made allocations involving sizeof work correctly (test/malloc.c).
[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
6317f163 6initialization.c:5:14: Possible out-of-bounds read: e[22]
7bf96067 7 Unable to resolve constraint:
4109ede4 8 requires maxRead(d @ initialization.c:3:14) >= 22
03d670b6 9 needed to satisfy precondition:
4109ede4 10 requires maxRead(e @ initialization.c:5:14) >= 22
6317f163 11initialization.c:8:3: Possible out-of-bounds store: f[2]
7bf96067 12 Unable to resolve constraint:
bf5819c8 13 requires maxSet(d @ initialization.c:3:14) >= 2
14 needed to satisfy precondition:
15 requires maxSet(f @ initialization.c:8:3) >= 2
dcf136ce 16simplifyTest.c: (in function fooSub)
6317f163 17simplifyTest.c:3:3: Possible out-of-bounds store: s[i]
7bf96067 18 Unable to resolve 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)
6317f163 23simplifyTest.c:10:3: Possible out-of-bounds store: s[i + 2]
7bf96067 24 Unable to resolve 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, ...)
7bf96067 31strncatNotReallyGood.c:4:21: Possible out-of-bounds store:
9276a168 32 strncat(buffer, str, sizeof((buffer)) - 1)
7bf96067 33 Unable to resolve constraint:
4109ede4 34 requires maxRead(buffer @ strncatNotReallyGood.c:4:29) <= 0
03d670b6 35 needed to satisfy precondition:
4109ede4 36 requires maxSet(buffer @ strncatNotReallyGood.c:4:29) >= maxRead(buffer @
37 strncatNotReallyGood.c:4:29) + 255
38 derived from strncat precondition: requires maxSet(<parameter 1>) >=
39 maxRead(<parameter 1>) + <parameter 3>
80ee600a 40
11db3170 41Finished checking --- 8 code warnings, as expected
This page took 0.111156 seconds and 5 git commands to generate.