Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cve issue 42506269 #245

Merged
merged 1 commit into from
Feb 28, 2025
Merged

fix cve issue 42506269 #245

merged 1 commit into from
Feb 28, 2025

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