]> andersk Git - splint.git/blob - test/mystrncat.expect
os2/makeos2.cmd: also make in ../lib with `-o' option.
[splint.git] / test / mystrncat.expect
1
2 mystrncat.c: (in function func)
3 mystrncat.c:12:13: Passed storage buffer not completely defined (*buffer is
4                       undefined): mystrncat (buffer, ...)
5 mystrncat.c:13:13: Passed storage b not completely defined (*b is undefined):
6                       mystrncat (b, ...)
7 mystrncat.c:12:3: Possible out-of-bounds store:
8     mystrncat(buffer, str, sizeof((buffer)) - 1)
9     Unable to resolve constraint:
10     requires maxRead(buffer @ mystrncat.c:12:13) <= 0
11      needed to satisfy precondition:
12     requires maxSet(buffer @ mystrncat.c:12:13) >= maxRead(buffer @
13     mystrncat.c:12:13) + 255
14      derived from mystrncat precondition:
15     requires maxSet(<parameter 1>) >= maxRead(<parameter 1>) + <parameter 3>
16 mystrncat.c:13:3: Possible out-of-bounds store:
17     mystrncat(b, str, sizeof((buffer)) - 1)
18     Unable to resolve constraint:
19     requires maxRead(malloc(256) @ mystrncat.c:10:7) <= 0
20      needed to satisfy precondition:
21     requires maxSet(b @ mystrncat.c:13:13) >= maxRead(b @ mystrncat.c:13:13) +
22     255
23      derived from mystrncat precondition:
24     requires maxSet(<parameter 1>) >= maxRead(<parameter 1>) + <parameter 3>
25
26 Finished checking --- 4 code warnings, as expected
This page took 0.044457 seconds and 5 git commands to generate.