]> andersk Git - splint.git/blame - test/moreBufferTests2.expect
Fixed off by one bug involving arrays initialized with a block of values.
[splint.git] / test / moreBufferTests2.expect
CommitLineData
30585c35 1
2unknownsize.c: (in function uknSize1)
6317f163 3unknownsize.c:9:3: Possible out-of-bounds store: c[9]
30585c35 4 Unable to resolve constraint:
5 requires maxSet(c @ unknownsize.c:9:3) >= 9
6 needed to satisfy precondition:
7 requires maxSet(c @ unknownsize.c:9:3) >= 9
8
a956d444 9Finished checking --- 1 code warning, as expected
e7af8598 10
11fixedArrayType.c: (in function fixedArrayTouch)
6317f163 12fixedArrayType.c:9:3: Possible out-of-bounds store: buffer[sizeof(Array) - 1]
e7af8598 13 Unable to resolve constraint:
abd7f895 14 requires sizeof(Array) @ fixedArrayType.c:9:25 <= 10
e7af8598 15 needed to satisfy precondition:
16 requires maxSet(buffer @ fixedArrayType.c:9:3) >= sizeof(Array) @
abd7f895 17 fixedArrayType.c:9:25 - 1
e7af8598 18
19Finished checking --- 1 code warning, as expected
8f58355a 20
21initBlock.c: (in function main)
22initBlock.c:8:3: Likely out-of-bounds store: buf[10]
23 Unable to resolve constraint:
24 requires 9 >= 10
25 needed to satisfy precondition:
26 requires maxSet(buf @ initBlock.c:8:3) >= 10
27
28Finished checking --- 1 code warning, as expected
This page took 0.117084 seconds and 5 git commands to generate.