Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
regex: Using "]]]]][\\" as a pattern should raise an error #14919
Created by @Grimy
How to reproduce
"]]]]][\\" fails to raise an error. Note that this does not happen if we remove
Other combinations of regexes can trigger this bug. It happens regularly when
Current blead (2d9b5f1) is affected.
On Thu Sep 24 09:22:42 2015, email@example.com wrote:
I too found that my blead did not have the problem. It is compiled with -DEBUGGING. Then I tried a non-debugging blead, and it did reproduce. When something inconsistent like that happens, it's often found by running valgrind. And sure enough, it was reading beyond the end of a buffer.
I have a fix locally, but will audit regcomp.c for similar errors before pushing it.