]> andersk Git - splint.git/blame - test/null.expect
Renaming - LCLint => Splint
[splint.git] / test / null.expect
CommitLineData
885824d3 1
2null1.c: (in function f)
3null1.c:19:20: Implicitly temp storage x returned as only: x
4null1.c:19:20: Possibly null storage x returned as non-null: x
5 null1.c:10:35: Storage x may become null
6null1.c:19:22: Fresh storage y not released before return
7 null1.c:12:41: Fresh storage y allocated
8null1.c:31:4: Dereference of possibly null pointer y: *y
9 null1.c:12:12: Storage y may become null
10null1.c:34:5: Possibly null storage z passed as non-null param: g (z)
11 null1.c:25:7: Storage z may become null
12null1.c:34:5: Passed storage z not completely defined (*z is undefined): g (z)
13null1.c:39:14: Dereference of null pointer z: *z
14 null1.c:25:7: Storage z becomes null
15null1.c:43:22: Dereference of possibly null pointer z4: *z4
16 null1.c:42:8: Storage z4 may become null
17null1.c:46:25: Dereference of possibly null pointer z2: *z2
18 null1.c:26:8: Storage z2 may become null
19null1.c:49:11: Dereference of possibly null pointer z3: *z3
20 null1.c:27:8: Storage z3 may become null
21null1.c:55:4: Dereference of possibly null pointer z2: *z2
22 null1.c:51:8: Storage z2 may become null
23null1.c:59:23: Dereference of possibly null pointer z5: *z5
24 null1.c:57:8: Storage z5 may become null
25null1.c:67:10: Possibly null storage z returned as non-null: z
26 null1.c:25:7: Storage z may become null
27null1.c:67:12: Fresh storage z3 not released before return
28 null1.c:27:3: Fresh storage z3 allocated
29
11db3170 30Finished checking --- 14 code warnings, as expected
885824d3 31
32null1.c: (in function f)
33null1.c:19:20: Implicitly temp storage x returned as only: x
34null1.c:19:22: Fresh storage y not released before return
35 null1.c:12:41: Fresh storage y allocated
36null1.c:34:5: Passed storage z not completely defined (*z is undefined): g (z)
37null1.c:67:12: Fresh storage z3 not released before return
38 null1.c:27:3: Fresh storage z3 allocated
39
11db3170 40Finished checking --- 4 code warnings, as expected
885824d3 41
42null2.c: (in function f)
43null2.c:15:10: Left operand of && is non-boolean (int *): x1 && (*x1 == 3)
44null2.c:16:19: Dereference of possibly null pointer x2: *x2
45 null2.c:10:55: Storage x2 may become null
46null2.c:17:18: Dereference of possibly null pointer x3: *x3
47 null2.c:11:21: Storage x3 may become null
48null2.c:17:10: Left operand of || is non-boolean (int *): x3 || (*x3 == 3)
49null2.c:20:27: Dereference of possibly null pointer x1: *x1
50 null2.c:10:35: Storage x1 may become null
51null2.c:23:7: Left operand of && is non-boolean (int *): x4 && (*x4 == 3)
52null2.c:30:8: Dereference of possibly null pointer x4: *x4
53 null2.c:11:41: Storage x4 may become null
54null2.c:35:14: Implicitly temp storage x3 returned as only: (x3)
55null2.c:35:14: Possibly null storage x3 returned as non-null: (x3)
56 null2.c:11:21: Storage x3 may become null
57null2.c:39:10: Implicitly temp storage x1 returned as only: (x1)
58
11db3170 59Finished checking --- 10 code warnings, as expected
885824d3 60
61null3.c: (in function f3)
62null3.c:16:4: Dereference of possibly null pointer gnip: *gnip
63 null3.c:3:25: Storage gnip may become null
64null3.c: (in function f)
65null3.c:27:4: Dereference of possibly null pointer arg0: *arg0
66null3.c:37:8: Dereference of possibly null pointer z: *z
67 null3.c:25:12: Storage z may become null
68null3.c:38:16: Only storage aip not released before return
69 null3.c:22:66: Storage aip becomes only
70null3.c:44:4: Dereference of possibly null pointer arg2: *arg2
71null3.c:52:4: Dereference of possibly null pointer gnip: *gnip
72 null3.c:51:10: Storage gnip may become null
73null3.c:53:9: Variable z used after being released
74 null3.c:51:3: Storage z released
80ee600a 75null3.c:53:3: Only storage gip (type int *) not released before assignment (z
76 aliases gnip): gip = z
885824d3 77 null3.c:5:17: Storage gip becomes only
80ee600a 78null3.c:55:3: Only storage gnip (type nip) not released before assignment:
79 gnip = aip
885824d3 80 null3.c:53:3: Storage gnip becomes only
81null3.c:60:14: Returned storage y not completely defined (*y is undefined): y
82null3.c:60:16: Function returns with non-null global gip referencing null
83 storage
84 null3.c:53:9: Storage gip may become null
85null3.c:65:14: Possibly null storage y returned as non-null: y
86 null3.c:24:12: Storage y may become null
87null3.c:65:14: Returned storage y not completely defined (*y is undefined): y
88null3.c:65:16: Function returns with non-null global gip referencing null
89 storage
90 null3.c:53:9: Storage gip may become null
91null3.c: (in function f2)
92null3.c:73:4: Dereference of possibly null pointer gnip: *gnip
93 null3.c:55:10: Storage gnip may become null
94
11db3170 95Finished checking --- 15 code warnings, as expected
885824d3 96
97null3.c: (in function f3)
98null3.c:16:4: Dereference of possibly null pointer gnip: *gnip
99 null3.c:3:25: Storage gnip may become null
100null3.c: (in function f)
101null3.c:27:4: Dereference of possibly null pointer arg0: *arg0
102null3.c:35:13: Possibly null storage y passed as non-null param: free (y)
103 null3.c:24:12: Storage y may become null
104null3.c:37:8: Dereference of possibly null pointer z: *z
105 null3.c:25:12: Storage z may become null
106null3.c:38:16: Only storage aip not released before return
107 null3.c:22:66: Storage aip becomes only
108null3.c:44:4: Dereference of possibly null pointer arg2: *arg2
109null3.c:52:4: Dereference of possibly null pointer gnip: *gnip
110 null3.c:51:10: Storage gnip may become null
111null3.c:53:9: Variable z used after being released
112 null3.c:51:3: Storage z released
80ee600a 113null3.c:53:3: Only storage gip (type int *) not released before assignment (z
114 aliases gnip): gip = z
885824d3 115 null3.c:5:17: Storage gip becomes only
80ee600a 116null3.c:55:3: Only storage gnip (type nip) not released before assignment:
117 gnip = aip
885824d3 118 null3.c:53:3: Storage gnip becomes only
119null3.c:60:14: Returned storage y not completely defined (*y is undefined): y
120null3.c:60:16: Function returns with non-null global gip referencing null
121 storage
122 null3.c:53:9: Storage gip may become null
123null3.c:65:14: Possibly null storage y returned as non-null: y
124 null3.c:24:12: Storage y may become null
125null3.c:65:14: Returned storage y not completely defined (*y is undefined): y
126null3.c:65:16: Function returns with non-null global gip referencing null
127 storage
128 null3.c:53:9: Storage gip may become null
129null3.c: (in function f2)
130null3.c:73:4: Dereference of possibly null pointer gnip: *gnip
131 null3.c:55:10: Storage gnip may become null
132
11db3170 133Finished checking --- 16 code warnings, as expected
885824d3 134
135null4.c: (in function g)
80ee600a 136null4.c:43:3: Only storage p (type int *) not released before assignment:
137 p = malloc(24)
885824d3 138 null4.c:3:28: Storage p becomes only
139
11db3170 140Finished checking --- 1 code warning, as expected
885824d3 141
80ee600a 142null5.c:5:29: Qualifier falsenull used with function returning char (should
885824d3 143 return bool)
80ee600a 144null5.c:6:29: Qualifier falsenull used with function having 2 arguments (should
885824d3 145 have 1)
146null5.c: (in function g2)
147null5.c:26:15: Dereference of possibly null pointer y: *y
148 null5.c:18:25: Storage y may become null
149null5.c: (in function g3)
150null5.c:37:11: Dereference of null pointer y: *y
151 null5.c:30:25: Storage y becomes null
152
11db3170 153Finished checking --- 4 code warnings, as expected
885824d3 154
155null6.c:7:36: Function f1 declared with notnull parameter x of abstract type
156 mnull
157null6.c: (in function f)
158null6.c:11:11: Dereference of possibly null pointer x: *x
159null6.c: (in function f6)
160null6.c:68:10: Possibly null storage x returned as non-null: x
161 null6.c:61:31: Storage x may become null
162null6.c: (in function f7)
163null6.c:84:10: Possibly null storage x returned as non-null: x
164 null6.c:81:11: Storage x may become null
165
11db3170 166Finished checking --- 4 code warnings, as expected
885824d3 167
168null6.c:7:36: Function f1 declared with notnull parameter x of abstract type
169 mnull
170null6.c: (in function f)
171null6.c:11:11: Dereference of possibly null pointer x: *x
172null6.c: (in function f6)
173null6.c:68:10: Possibly null storage x returned as non-null: x
174 null6.c:61:31: Storage x may become null
175null6.c: (in function f7)
176null6.c:84:10: Possibly null storage x returned as non-null: x
177 null6.c:81:11: Storage x may become null
178
11db3170 179Finished checking --- 4 code warnings, as expected
This page took 0.087261 seconds and 5 git commands to generate.