File: moreBufferTests2.expect

package info (click to toggle)
splint 3.1.2.dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 12,908 kB
  • ctags: 15,816
  • sloc: ansic: 150,306; yacc: 3,463; sh: 3,426; makefile: 2,218; lex: 412
file content (28 lines) | stat: -rw-r--r-- 995 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

unknownsize.c: (in function uknSize1)
unknownsize.c:9:3: Possible out-of-bounds store: c[9]
    Unable to resolve constraint:
    requires maxSet(c @ unknownsize.c:9:3) >= 9
     needed to satisfy precondition:
    requires maxSet(c @ unknownsize.c:9:3) >= 9

Finished checking --- 1 code warning, as expected

fixedArrayType.c: (in function fixedArrayTouch)
fixedArrayType.c:9:3: Possible out-of-bounds store: buffer[sizeof(Array) - 1]
    Unable to resolve constraint:
    requires sizeof(Array) @ fixedArrayType.c:9:25 <= 10
     needed to satisfy precondition:
    requires maxSet(buffer @ fixedArrayType.c:9:3) >= sizeof(Array) @
    fixedArrayType.c:9:25 - 1

Finished checking --- 1 code warning, as expected

initBlock.c: (in function main)
initBlock.c:8:3: Likely out-of-bounds store: buf[10]
    Unable to resolve constraint:
    requires 9 >= 10
     needed to satisfy precondition:
    requires maxSet(buf @ initBlock.c:8:3) >= 10

Finished checking --- 1 code warning, as expected