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 stack overflow on parsing deeply nested expressions #843

Closed
wants to merge 1 commit into from

Conversation

Keithcat1
Copy link
Contributor

Added a maximum expression depth of 64 to the parser and a more helpful error message if it's exceeded

This fixes #788

Changelog: fixed

@yorickpeterse yorickpeterse self-requested a review March 18, 2025 13:42
@yorickpeterse yorickpeterse added feature New things to add to Inko, such as a new standard library module compiler Changes related to the compiler labels Mar 18, 2025
@yorickpeterse yorickpeterse added this to the 0.19.0 milestone Mar 18, 2025
Added a maximum expression depth of 64 to the parser and a more helpful
error message if it's exceeded.

This fixes inko-lang#788.

Changelog: fixed
@yorickpeterse
Copy link
Collaborator

I added a test and made some small formatting changes, but it seems I pushed them to the PR branch the wrong way such that it got closed. As such, I just merged it into e47c00a and pushed locally.

@Keithcat1 Thanks! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Changes related to the compiler feature New things to add to Inko, such as a new standard library module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gracefully handle deeply nested expressions, instead of blowing the stack
2 participants