Fix nesting too deep - #401
Open
stringhandler wants to merge 1 commit into
Open
Conversation
stringhandler
force-pushed
the
st-nesting-too-deep
branch
from
August 31, 2026 13:20
53cb5b4 to
bf0439d
Compare
stringhandler
force-pushed
the
st-nesting-too-deep
branch
from
August 31, 2026 13:22
bf0439d to
012c11d
Compare
Contributor
|
lmao debug builds are using 80kb of stack per frame? I think we need to fix that. A recursion depth limit of 16 is far too low. I'd prefer no limit at all. Is the recursion inherent to chumsky or can we fix it within our own code. |
Contributor
Author
|
Yeah, this is a concerning bug though, as wallets will potentially be compiling code. I agree that 16 is too low. Let me dig in and see if I can find out what is taking up so much space. |
Contributor
|
The compiler shouldn't be recursing here. In We should investigate where the actual stack overflow comes from. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #399.
Deeply nested input overflowed the stack and aborted the process instead of producing an error, making any service that compiles .simf files trivially killable.