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

parser,ast: protect against more overflows/panics, by forcing early returns on deeply nested expressions and scopes #22098

Conversation

spytheman
Copy link
Member

@spytheman spytheman commented Aug 22, 2024

Fixes #22095 .

@spytheman
Copy link
Member Author

The CI failure is a bit puzzling... It passes locally for me, with tcc on windows:
изображение

@spytheman spytheman merged commit e3ceb58 into vlang:master Aug 23, 2024
73 checks passed
@spytheman spytheman deleted the return_early_on_too_deeply_nested_scopes_and_expressions branch August 23, 2024 09:33
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.

V parser segfault with -silent, discovered with radamsa, for a very long -----n----m------ pattern.
1 participant