Commit 154064e
committed
Replace compareMemory() with memcmp(); NFC
WG14 N3322 (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3322.pdf)
was adopted for C2y, which makes zero-length operations on null
pointers well-defined. The paper was also adopted as the WG14
equivalent of a WG21 defect report, so it applies in older language
modes as well. We are not aware of any C standard library which takes
advantage of this former UB, so this workaround is no longer needed.1 parent ced23aa commit 154064e
2 files changed
+4
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 69 | | |
77 | 70 | | |
78 | 71 | | |
| |||
182 | 175 | | |
183 | 176 | | |
184 | 177 | | |
185 | | - | |
186 | | - | |
| 178 | + | |
187 | 179 | | |
188 | 180 | | |
189 | 181 | | |
| |||
264 | 256 | | |
265 | 257 | | |
266 | 258 | | |
267 | | - | |
| 259 | + | |
268 | 260 | | |
269 | 261 | | |
270 | 262 | | |
| |||
276 | 268 | | |
277 | 269 | | |
278 | 270 | | |
279 | | - | |
280 | | - | |
| 271 | + | |
281 | 272 | | |
282 | 273 | | |
283 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments