Commit 91cf496
committed
pcre2_match: improve
A recently fixed bug in Scan Substring triggered problems in the
current logic that would result in crashes and the skipping of
safewards.
Add an assert to validate that this function is never called with
an `eptr` over the end of the subject and use the correct return
value for non partial matches of back references.match_ref() logic for robustness1 parent a3c3dbd commit 91cf496
4 files changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| |||
485 | 486 | | |
486 | 487 | | |
487 | 488 | | |
488 | | - | |
489 | | - | |
| 489 | + | |
| 490 | + | |
490 | 491 | | |
491 | 492 | | |
492 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7956 | 7956 | | |
7957 | 7957 | | |
7958 | 7958 | | |
7959 | | - | |
| 7959 | + | |
7960 | 7960 | | |
7961 | 7961 | | |
7962 | 7962 | | |
7963 | 7963 | | |
7964 | | - | |
| 7964 | + | |
7965 | 7965 | | |
7966 | 7966 | | |
7967 | 7967 | | |
| |||
8478 | 8478 | | |
8479 | 8479 | | |
8480 | 8480 | | |
8481 | | - | |
8482 | | - | |
8483 | | - | |
| 8481 | + | |
| 8482 | + | |
| 8483 | + | |
8484 | 8484 | | |
8485 | | - | |
| 8485 | + | |
8486 | 8486 | | |
8487 | 8487 | | |
8488 | 8488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6753 | 6753 | | |
6754 | 6754 | | |
6755 | 6755 | | |
| 6756 | + | |
| 6757 | + | |
| 6758 | + | |
6756 | 6759 | | |
6757 | 6760 | | |
6758 | 6761 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20258 | 20258 | | |
20259 | 20259 | | |
20260 | 20260 | | |
| 20261 | + | |
| 20262 | + | |
| 20263 | + | |
| 20264 | + | |
| 20265 | + | |
| 20266 | + | |
| 20267 | + | |
20261 | 20268 | | |
20262 | 20269 | | |
20263 | 20270 | | |
| |||
0 commit comments