Commit d11400f
authored
test: avoid UB in test17 (#312)
Since 4ef0c51 (Interpret NULL pointer, zero length as an empty
string for subjects and replacements., 2021-11-30), a NULL pointer
with zero length has been internally replaced with an empty string
in all matching functions, but the test for jit was incorrectly
using the fastpath which intentionally skips all validation and
results in NULL pointer arithmetic operations.
Change the test to use the validating jit path instead.1 parent d01cd71 commit d11400f
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
| 553 | + | |
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| |||
0 commit comments