File: simplebufferConstraintTests.expect

package info (click to toggle)
splint 3.1.2.dfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,732 kB
  • ctags: 16,317
  • sloc: ansic: 150,320; yacc: 3,463; sh: 3,003; makefile: 2,153; lex: 412
file content (33 lines) | stat: -rw-r--r-- 1,188 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

m.c: (in function t)
m.c:9:1: Index of possibly null pointer f: f
   m.c:8:5: Storage f may become null
sizeof.c: (in function f)
sizeof.c:17:1: Likely out-of-bounds store: x[(sizeof(x))]
    Unable to resolve constraint:
    requires 2 >= 3
     needed to satisfy precondition:
    requires maxSet(x @ sizeof.c:17:1) >= 3
test3.c:2:6: Function t defined more than once
   m.c:11:1: Previous definition of t
test3.c: (in function t)
test3.c:9:3: Likely out-of-bounds store: g[101]
    Unable to resolve constraint:
    requires 99 >= 101
     needed to satisfy precondition:
    requires maxSet(g @ test3.c:9:3) >= 101
test7.c:2:6: Function t defined more than once
   m.c:11:1: Previous definition of t
test7.c: (in function t)
test7.c:6:3: Possible out-of-bounds store: g[2]
    Unable to resolve constraint:
    requires maxSet(g @ test7.c:4:3) >= 4
     needed to satisfy precondition:
    requires maxSet(g @ test7.c:6:3) >= 2
test7.c:8:3: Possible out-of-bounds store: j[0]
    Unable to resolve constraint:
    requires maxSet(j @ test7.c:8:3) >= 0
     needed to satisfy precondition:
    requires maxSet(j @ test7.c:8:3) >= 0

Finished checking --- 7 code warnings, as expected