Skip to content

Conversation

cmazakas
Copy link
Member

fixes #244

It seems like there was a bug in how we handled parsing repetitions in the presence of Perl-extended comments.

The library is able to diagnose erroneous repetitions such as: /]*++/ but this wasn't the case for something like: /]*+#comment\n+, as was found by fuzzing.

I've updated the code to hopefully fix this.

Test case came to us from: https://issues.oss-fuzz.com/issues/42506269

@cmazakas
Copy link
Member Author

@jzmaddock Just wanted to ping you to make sure this got your attention. This was a fun one to fix.

@jzmaddock
Copy link
Collaborator

Thanks @cmazakas !

@jzmaddock jzmaddock merged commit 34b1c2f into boostorg:develop Feb 28, 2025
51 checks passed
@cmazakas cmazakas deleted the cve-42506269 branch February 28, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid Perl regex leads to misaligned access

2 participants