]> andersk Git - splint.git/blame - test/db3.expect
Fixes for win32
[splint.git] / test / db3.expect
CommitLineData
885824d3 1
f9264521 2employee.c: (in function employee_sprint)
3employee.c:38: Buffer overflow possible with sprintf. Recommend using snprintf
4 instead: sprintf
5drive.c: (in function main)
6drive.c:50: Buffer overflow possible with sprintf. Recommend using snprintf
7 instead: sprintf
8drive.c:66: Buffer overflow possible with sprintf. Recommend using snprintf
9 instead: sprintf
10drive.c:84: Buffer overflow possible with sprintf. Recommend using snprintf
11 instead: sprintf
12drive.c:138: Buffer overflow possible with sprintf. Recommend using snprintf
13 instead: sprintf
885824d3 14
15Error Type Reported Suppressed
16=================== ======== =========
17usedef 0 1
3120b462 18compdef 0 3
bb7c2085 19incondefs 0 1
3120b462 20formalarray 0 24
bb7c2085 21modfilesys 0 25
22redecl 0 7
23exporttype 0 3
f9264521 24bufferoverflowhigh 5 0
885824d3 25 ======== =========
f9264521 26Total 5 64
885824d3 27
f9264521 28Finished checking --- 5 code warnings, as expected
885824d3 29
f9264521 30employee.c: (in function employee_sprint)
31employee.c:38: Buffer overflow possible with sprintf. Recommend using snprintf
32 instead: sprintf
885824d3 33eref.c: (in function eref_alloc)
34eref.c:36: Called procedure printf may access global stdout
35eref.c:36: Undocumented modification of *stdout possible from call to printf:
36 printf("Malloc returned null in eref_alloc\n")
37eref.c:36: Return value (type int) ignored: printf("Malloc r...
38eref.c:46: Called procedure printf may access global stdout
39eref.c:46: Undocumented modification of *stdout possible from call to printf:
40 printf("Malloc returned null in eref_alloc\n")
41eref.c:46: Return value (type int) ignored: printf("Malloc r...
42eref.c: (in function eref_initMod)
43eref.c:82: Called procedure printf may access global stdout
44eref.c:82: Undocumented modification of *stdout possible from call to printf:
45 printf("Malloc returned null in eref_initMod\n")
46eref.c:82: Return value (type int) ignored: printf("Malloc r...
47eref.c:90: Called procedure printf may access global stdout
48eref.c:90: Undocumented modification of *stdout possible from call to printf:
49 printf("Malloc returned null in eref_initMod\n")
50eref.c:90: Return value (type int) ignored: printf("Malloc r...
51erc.c: (in function int_toSize)
52erc.c:11: Undocumented use of global stderr
53erc.c:11: Undocumented modification of *stderr possible from call to fprintf:
54 fprintf(stderr, "Error: int_toSize failure: %d", x)
55erc.c:11: Return value (type int) ignored: fprintf(stderr, ...
56erc.c: (in function erc_create)
57erc.c:28: Called procedure printf may access global stdout
58erc.c:28: Undocumented modification of *stdout possible from call to printf:
59 printf("Malloc returned null in erc_create\n")
60erc.c:28: Return value (type int) ignored: printf("Malloc r...
61erc.c: (in function erc_insert)
62erc.c:80: Called procedure printf may access global stdout
63erc.c:80: Undocumented modification of *stdout possible from call to printf:
64 printf("Malloc returned null in erc_insert\n")
65erc.c:80: Return value (type int) ignored: printf("Malloc r...
66erc.c: (in function erc_sprint)
67erc.c:145: Called procedure printf may access global stdout
68erc.c:145: Undocumented modification of *stdout possible from call to printf:
69 printf("Malloc returned null in erc_sprint\n")
70erc.c:145: Return value (type int) ignored: printf("Malloc r...
71dbase.c: (in function db_print)
72dbase.c:307: Return value (type int) ignored: printf("Employee...
73dbase.c:312: Return value (type int) ignored: printf("%s", pri...
74drive.c: (in function main)
75drive.c:31: Called procedure printf may access global stdout
76drive.c:31: Undocumented modification of *stdout possible from call to printf:
77 printf("FormatPos: Wrong number of arguments. Given %d needs 0.\n", argc -
78 1)
79drive.c:31: Return value (type int) ignored: printf("FormatPo...
80drive.c:41: Called procedure printf may access global stdout
81drive.c:41: Undocumented modification of *stdout possible from call to printf:
82 printf("Size should be 0.\n")
83drive.c:41: Return value (type int) ignored: printf("Size sho...
f9264521 84drive.c:50: Buffer overflow possible with sprintf. Recommend using snprintf
85 instead: sprintf
885824d3 86drive.c:57: Called procedure printf may access global stdout
87drive.c:57: Undocumented modification of *stdout possible from call to printf:
88 printf("Size should be 500.\n")
89drive.c:57: Return value (type int) ignored: printf("Size sho...
f9264521 90drive.c:66: Buffer overflow possible with sprintf. Recommend using snprintf
91 instead: sprintf
885824d3 92drive.c:73: Called procedure printf may access global stdout
93drive.c:73: Undocumented modification of *stdout possible from call to printf:
94 printf("Size should be 250.\n")
95drive.c:73: Return value (type int) ignored: printf("Size sho...
f9264521 96drive.c:84: Buffer overflow possible with sprintf. Recommend using snprintf
97 instead: sprintf
885824d3 98drive.c:93: Called procedure printf may access global stdout
99drive.c:93: Undocumented modification of *stdout possible from call to printf:
100 printf("Size should be 350.\n")
101drive.c:93: Return value (type int) ignored: printf("Size sho...
102drive.c:100: Called procedure printf may access global stdout
103drive.c:100: Undocumented modification of *stdout possible from call to printf:
104 printf("Size should be 350.\n")
105drive.c:100: Return value (type int) ignored: printf("Size sho...
106drive.c:103: Called procedure printf may access global stdout
107drive.c:103: Undocumented modification of *stdout possible from call to printf:
108 printf("Print two different employees:\n")
109drive.c:103: Return value (type int) ignored: printf("Print tw...
110drive.c:109: Called procedure printf may access global stdout
111drive.c:109: Undocumented modification of *stdout possible from call to printf:
112 printf("%s\n", &(na[0]))
113drive.c:109: Return value (type int) ignored: printf("%s\n", &...
f9264521 114drive.c:138: Buffer overflow possible with sprintf. Recommend using snprintf
115 instead: sprintf
885824d3 116drive.c:151: Called procedure printf may access global stdout
117drive.c:151: Undocumented modification of *stdout possible from call to printf:
118 printf("Should print true: %s\n", bool_unparse(status == DBS_DUPLERR))
119drive.c:151: Return value (type int) ignored: printf("Should p...
120drive.c:154: Called procedure printf may access global stdout
121drive.c:154: Undocumented modification of *stdout possible from call to printf:
122 printf("Employees 0 - 19\n")
123drive.c:154: Return value (type int) ignored: printf("Employee...
124drive.c:155: Called procedure db_print may access global stdout
125drive.c:155: Undocumented modification of *stdout possible from call to
126 db_print: db_print()
127drive.c:158: Called procedure printf may access global stdout
128drive.c:158: Undocumented modification of *stdout possible from call to printf:
129 printf("Employees 0 - 16, 18 - 19\n")
130drive.c:158: Return value (type int) ignored: printf("Employee...
131drive.c:159: Called procedure db_print may access global stdout
132drive.c:159: Undocumented modification of *stdout possible from call to
133 db_print: db_print()
134drive.c:164: Called procedure printf may access global stdout
135drive.c:164: Undocumented modification of *stdout possible from call to printf:
136 printf("Should get two females: %d\n%s\n", i, sprintResult)
137drive.c:164: Return value (type int) ignored: printf("Should g...
138drive.c:174: Called procedure printf may access global stdout
139drive.c:174: Undocumented modification of *stdout possible from call to printf:
140 printf("Should get two females and ten males: %d\n%s\n", i, sprintResult)
141drive.c:174: Return value (type int) ignored: printf("Should g...
142drive.c:180: Called procedure printf may access global stdout
143drive.c:180: Undocumented modification of *stdout possible from call to printf:
144 printf("Should get two females: %d\n%s\n", i, sprintResult)
145drive.c:180: Return value (type int) ignored: printf("Should g...
146drive.c:184: Called procedure printf may access global stdout
147drive.c:184: Undocumented modification of *stdout possible from call to printf:
148 printf("Should get 18 employees\n")
149drive.c:184: Return value (type int) ignored: printf("Should g...
150drive.c:185: Called procedure db_print may access global stdout
151drive.c:185: Undocumented modification of *stdout possible from call to
152 db_print: db_print()
153
154Error Type Reported Suppressed
155=================== ======== =========
156usedef 0 1
3120b462 157compdef 0 3
bb7c2085 158incondefs 0 1
159formalarray 0 24
885824d3 160mods 26 0
161modfilesys 0 25
bb7c2085 162globs 26 0
163retvalint 25 0
164redecl 0 7
165exporttype 0 3
f9264521 166bufferoverflowhigh 5 0
885824d3 167 ======== =========
f9264521 168Total 82 64
885824d3 169
f9264521 170Finished checking --- 82 code warnings, as expected
This page took 1.359608 seconds and 5 git commands to generate.