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