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

[DSLX:FE] Add expression depth guard for Term grammar production, factor out helper. #1817

Conversation

cdleary
Copy link
Collaborator

@cdleary cdleary commented Dec 30, 2024

Previously AFL would overrun the stack because it found this way to invoke the grammar productions that didn't go through an expression depth guard.

Really this amounts to sprinkling it in one more place but to avoid proliferating the duplication I factored out a helper object, as absl::Cleanup is stated that it is only designed to work within a function.

There was just one fuzz crasher that was affected by the change and in that case the parens could just be removed.

@copybara-service copybara-service bot merged commit c646a73 into google:main Jan 6, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants