Skip to content

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

Merged
spytheman merged 4 commits into
vlang:masterfrom
spytheman:return_early_on_too_deeply_nested_scopes_and_expressions
Aug 23, 2024
Merged

spytheman merged 4 commits into
vlang:masterfrom
spytheman:return_early_on_too_deeply_nested_scopes_and_expressions

Conversation

@spytheman

@spytheman spytheman commented Aug 22, 2024 •

Copy link
Copy Markdown
Contributor

Fixes #22095 .

@spytheman

Copy link
Copy Markdown
Contributor 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
@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