Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: tools/clang/plugins/tests/ipc.txt

Issue 1810243002: Check for unstable types in IPC messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/clang/plugins/tests/ipc.flags ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ipc.cpp:83:26: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
2 WriteParam(pickle, p.size); // ERROR
3 ^
4 ipc.cpp:107:24: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
5 WriteParam(pickle, static_cast<long>(container.value)); // ERROR
6 ^
7 ipc.cpp:135:29: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
8 IPC::WriteParam(pickle, size_t(0)); // ERROR
9 ^
10 ipc.cpp:145:29: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'time_t'.
11 IPC::WriteParam(pickle, time_t(0)); // ERROR
12 ^
13 ipc.cpp:156:27: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
14 IPC::WriteParam(pickle, long(0)); // ERROR
15 ^
16 ipc.cpp:162:29: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'clock_t'.
17 IPC::WriteParam(pickle, clock_t(0)); // ERROR
18 ^
19 ipc.cpp:194:1: error: [chromium-ipc] IPC tuple references banned type 'size_t'.
20 IPC_TEST_MESSAGE(__COUNTER__, (bool, size_t, Empty, long)) // 2 ERRORs
21 ^
22 ipc.cpp:190:3: note: expanded from macro 'IPC_TEST_MESSAGE'
23 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
24 ^
25 ipc.cpp:186:5: note: expanded from macro 'IPC_MESSAGE_DECL'
26 using InTuple = in_tuple; \
27 ^
28 ipc.cpp:194:1: error: [chromium-ipc] IPC tuple references banned type 'long'.
29 ipc.cpp:190:3: note: expanded from macro 'IPC_TEST_MESSAGE'
30 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
31 ^
32 ipc.cpp:186:5: note: expanded from macro 'IPC_MESSAGE_DECL'
33 using InTuple = in_tuple; \
34 ^
35 ipc.cpp:198:1: error: [chromium-ipc] IPC tuple references banned type 'long' via 'long2D'.
36 IPC_TEST_MESSAGE(__COUNTER__, (bool, long2D)) // ERROR
37 ^
38 ipc.cpp:190:3: note: expanded from macro 'IPC_TEST_MESSAGE'
39 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
40 ^
41 ipc.cpp:186:5: note: expanded from macro 'IPC_MESSAGE_DECL'
42 using InTuple = in_tuple; \
43 ^
44 ipc.cpp:197:29: note: see here
45 typedef std::vector<long1D> long2D;
46 ^
47 ipc.cpp:196:27: note: see here
48 typedef std::vector<long> long1D;
49 ^
50 ipc.cpp:200:1: error: [chromium-ipc] IPC tuple references banned type 'size_t' v ia 'std::pair<size_t, _Bool>'.
51 IPC_TEST_MESSAGE(__COUNTER__, (char, short, std::pair<size_t, bool>)) // ERROR
52 ^
53 ipc.cpp:190:3: note: expanded from macro 'IPC_TEST_MESSAGE'
54 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
55 ^
56 ipc.cpp:186:5: note: expanded from macro 'IPC_MESSAGE_DECL'
57 using InTuple = in_tuple; \
58 ^
59 ipc.cpp:202:1: error: [chromium-ipc] IPC tuple references banned type 'long' via 'std::vector<std::vector<long &> &>'.
60 IPC_TEST_MESSAGE(__COUNTER__, (std::vector<std::vector<long&>&>&)) // ERROR
61 ^
62 ipc.cpp:190:3: note: expanded from macro 'IPC_TEST_MESSAGE'
63 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
64 ^
65 ipc.cpp:186:5: note: expanded from macro 'IPC_MESSAGE_DECL'
66 using InTuple = in_tuple; \
67 ^
68 ipc.cpp:216:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
69 CALL_WRITEPARAM(long) // ERROR
70 ^
71 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
72 IPC::WriteParam(nullptr, p); \
73 ^
74 ipc.cpp:217:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
75 CALL_WRITEPARAM(unsigned long) // ERROR
76 ^
77 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
78 IPC::WriteParam(nullptr, p); \
79 ^
80 ipc.cpp:218:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'intmax_t'.
81 CALL_WRITEPARAM(intmax_t) // ERROR
82 ^
83 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
84 IPC::WriteParam(nullptr, p); \
85 ^
86 ipc.cpp:219:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'uintmax_t'.
87 CALL_WRITEPARAM(uintmax_t) // ERROR
88 ^
89 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
90 IPC::WriteParam(nullptr, p); \
91 ^
92 ipc.cpp:220:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'intptr_t'.
93 CALL_WRITEPARAM(intptr_t) // ERROR
94 ^
95 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
96 IPC::WriteParam(nullptr, p); \
97 ^
98 ipc.cpp:221:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'uintptr_t'.
99 CALL_WRITEPARAM(uintptr_t) // ERROR
100 ^
101 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
102 IPC::WriteParam(nullptr, p); \
103 ^
104 ipc.cpp:222:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'wint_t'.
105 CALL_WRITEPARAM(wint_t) // ERROR
106 ^
107 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
108 IPC::WriteParam(nullptr, p); \
109 ^
110 ipc.cpp:223:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
111 CALL_WRITEPARAM(size_t) // ERROR
112 ^
113 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
114 IPC::WriteParam(nullptr, p); \
115 ^
116 ipc.cpp:224:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'rsize_t'.
117 CALL_WRITEPARAM(rsize_t) // ERROR
118 ^
119 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
120 IPC::WriteParam(nullptr, p); \
121 ^
122 ipc.cpp:225:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'ssize_t'.
123 CALL_WRITEPARAM(ssize_t) // ERROR
124 ^
125 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
126 IPC::WriteParam(nullptr, p); \
127 ^
128 ipc.cpp:226:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'ptrdiff_t'.
129 CALL_WRITEPARAM(ptrdiff_t) // ERROR
130 ^
131 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
132 IPC::WriteParam(nullptr, p); \
133 ^
134 ipc.cpp:227:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'dev_t'.
135 CALL_WRITEPARAM(dev_t) // ERROR
136 ^
137 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
138 IPC::WriteParam(nullptr, p); \
139 ^
140 ipc.cpp:228:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'off_t'.
141 CALL_WRITEPARAM(off_t) // ERROR
142 ^
143 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
144 IPC::WriteParam(nullptr, p); \
145 ^
146 ipc.cpp:229:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'clock_t'.
147 CALL_WRITEPARAM(clock_t) // ERROR
148 ^
149 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
150 IPC::WriteParam(nullptr, p); \
151 ^
152 ipc.cpp:230:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'time_t'.
153 CALL_WRITEPARAM(time_t) // ERROR
154 ^
155 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
156 IPC::WriteParam(nullptr, p); \
157 ^
158 ipc.cpp:231:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'suseconds_t'.
159 CALL_WRITEPARAM(suseconds_t) // ERROR
160 ^
161 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
162 IPC::WriteParam(nullptr, p); \
163 ^
164 ipc.cpp:235:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'my_size'.
165 CALL_WRITEPARAM(my_size) // ERROR
166 ^
167 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
168 IPC::WriteParam(nullptr, p); \
169 ^
170 ipc.cpp:234:18: note: see here
171 typedef size_t my_size;
172 ^
173 ipc.cpp:240:32: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
174 IPC::WriteParam(nullptr, p + 1); // ERROR
175 ^
176 ipc.cpp:249:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'my_size'.
177 IPC::WriteParam(nullptr, p); // ERROR
178 ^
179 ipc.cpp:246:32: note: see here
180 typedef const my_size_base my_size;
181 ^
182 ipc.cpp:245:20: note: see here
183 typedef size_t my_size_base;
184 ^
185 ipc.cpp:253:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long' via 'std::vector<long>'.
186 CALL_WRITEPARAM(std::vector<long>) // ERROR
187 ^
188 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
189 IPC::WriteParam(nullptr, p); \
190 ^
191 ipc.cpp:254:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'std::vector<size_t>'.
192 CALL_WRITEPARAM(std::vector<size_t>) // ERROR
193 ^
194 ipc.cpp:212:32: note: expanded from macro 'CALL_WRITEPARAM'
195 IPC::WriteParam(nullptr, p); \
196 ^
197 ipc.cpp:324:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
198 IPC::WriteParam(nullptr, p.get<long>()); // ERROR
199 ^
200 ipc.cpp:325:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
201 IPC::WriteParam(nullptr, p.get_long()); // ERROR
202 ^
203 ipc.cpp:326:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
204 IPC::WriteParam(nullptr, p.long_data); // ERROR
205 ^
206 ipc.cpp:331:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
207 IPC::WriteParam(nullptr, p.get_size()); // ERROR
208 ^
209 ipc.cpp:332:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
210 IPC::WriteParam(nullptr, p.size_data); // ERROR
211 ^
212 ipc.cpp:336:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
213 IPC::WriteParam(nullptr, p.get<uint64_t>()); // ERROR
214 ^
215 ipc.cpp:341:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long' via 'struct std::vector<unsigned long, struct std::allocat or<unsigned long> >'.
216 IPC::WriteParam(nullptr, p.get<std::vector<uint64_t>>()); // ERROR
217 ^
218 ipc.cpp:348:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'std::vector<size_t>'.
219 IPC::WriteParam(nullptr, p.get_sizes()); // ERROR
220 ^
221 ipc.cpp:349:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'std::vector<size_t>'.
222 IPC::WriteParam(nullptr, p.sizes_data); // ERROR
223 ^
224 41 errors generated.
OLDNEW
« no previous file with comments | « tools/clang/plugins/tests/ipc.flags ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698