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, firstname.lastname@example.org 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.