]> andersk Git - splint.git/blame_incremental - test/simplebufferConstraintTests.expect
Made allocations involving sizeof work correctly (test/malloc.c).
[splint.git] / test / simplebufferConstraintTests.expect
... / ...
CommitLineData
1
2m.c: (in function t)
3m.c:9:1: Index of possibly null pointer f: f
4 m.c:8:5: Storage f may become null
5sizeof.c: (in function f)
6sizeof.c:17:1: Likely out-of-bounds store: x[(sizeof(x))]
7 Unable to resolve constraint:
8 requires 2 >= 3
9 needed to satisfy precondition:
10 requires maxSet(x @ sizeof.c:17:1) >= 3
11test3.c:2:6: Function t defined more than once
12 m.c:11:1: Previous definition of t
13test3.c: (in function t)
14test3.c:9:3: Likely out-of-bounds store: g[101]
15 Unable to resolve constraint:
16 requires 99 >= 101
17 needed to satisfy precondition:
18 requires maxSet(g @ test3.c:9:3) >= 101
19test7.c:2:6: Function t defined more than once
20 m.c:11:1: Previous definition of t
21test7.c: (in function t)
22test7.c:6:3: Possible out-of-bounds store: g[2]
23 Unable to resolve constraint:
24 requires maxSet(g @ test7.c:4:3) >= 4
25 needed to satisfy precondition:
26 requires maxSet(g @ test7.c:6:3) >= 2
27test7.c:8:3: Possible out-of-bounds store: j[0]
28 Unable to resolve constraint:
29 requires maxSet(j @ test7.c:8:3) >= 0
30 needed to satisfy precondition:
31 requires maxSet(j @ test7.c:8:3) >= 0
32
33Finished checking --- 7 code warnings, as expected
This page took 0.240007 seconds and 5 git commands to generate.