Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PATCH: [perl #37836] Simple Regex causes SEGV
As mentioned in the notes in the ticket, the test for this was wrong, relying on an optimization in the regex compiler that avoided the problematic code altogether. When corrected, the test would not segfault, but does croak. This is because the regex engine croaks on malformed UTF-8, which this is. croaking is probably the best option here, and has been in place for a number of releases. To fix the test, the pattern is modified by adding a character to circumvent the optimization, and the croak is guarded by a fresh_perl
- Loading branch information