Commit ec45680
r4x16pr: protect against input being NULL and in_size of zero.
This is a very esoteric case, and arguably we could just state that
the function is invalid if given a NULL pointer, but the undefined
behaviour sanitizer complains about memcpy of NULL even when copying
zero bytes.1 parent 56b4096 commit ec45680
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
1270 | | - | |
| 1270 | + | |
| 1271 | + | |
1271 | 1272 | | |
1272 | 1273 | | |
1273 | 1274 | | |
| |||
1380 | 1381 | | |
1381 | 1382 | | |
1382 | 1383 | | |
1383 | | - | |
| 1384 | + | |
| 1385 | + | |
1384 | 1386 | | |
1385 | 1387 | | |
1386 | 1388 | | |
| |||
0 commit comments