Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PATCH: [perl #134034] Assert fail in pattern match
This turned out to be a general problem in regexec.c. The function regtry() can change the position we are looking at in the target string. In particular it can point to just past the end of the string. Previous to this commit, we were assuming that the returned string contained valid data in the returned position, and in many places we assumed that it was before the end. This commit fixes that in a bunch of places.
- Loading branch information
1 parent
11b48e7
commit 8c9c272
Showing
2 changed files
with
43 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters