Closed vthib closed 1 year ago
Fixed in 95dafbdb3c59497771fc6991890d53e962a16eaa
Thanks for the fix! Do you have a released planned in the near future? I would love to get one to get the fix for this issue and #1928
ping @plusvic, would it be possible to make a new release given the numerous fixes since the last one? That would be great :)
Sorry for the delay @vthib, I'm starting to work in a 4.4.0 release that I hope to release soon.
Describe the bug
With some regexes marked as "ascii wide", no matches are reported on inputs that should match.
To Reproduce
Here are some tests cases showing the issue:
Expected behavior
The second test case should match.
Additional context
The regex might seem a bit far-fetched, I have actually stumbled upon the issue with the regex
a.{5}i
, and just reduced for the reproducibility.The bug does not exhibit when using "a.i". From what I can understand from some debugging:
So from what i can tell, the issue can happen when the ascii forward matcher is a prefix of the wide forward matcher. I should thus be possible to trigger with raw strings or hex strings, or even with some clever xor transformation, however I haven't tried to come up with more "realistic" strings that could trigger this bug.