Skip to content

cmd/compile: gracefully exit on parser stack overflow #68033

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

Open
griesemer opened this issue Jun 17, 2024 · 0 comments
Open

cmd/compile: gracefully exit on parser stack overflow #68033

griesemer opened this issue Jun 17, 2024 · 0 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@griesemer
Copy link
Contributor

The go/parser has a mechanism to detect excessive recursion and avoid possible stack overflow (incNestLev, decNestLev). We should implement a similar featured in the compiler's parser (syntax package).

Tracking issue.

@griesemer griesemer added the NeedsFix The path to resolution is known, but the work has not been done. label Jun 17, 2024
@griesemer griesemer added this to the Backlog milestone Jun 17, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done.
Projects
Development

No branches or pull requests

2 participants