-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don't stackoverflow on deeply nested expressions (#4876)
* fix: Don't stackoverflow on deeply nested expressions * refactor: Avoid checking the string message of a fatal error * refactor: Move depth checking to the parser * fix: Add stacker to manage stack growth in the parser Just in case another environment has a smaller stack size than my local environment we also grow the stack automatically. We still have the depth limit to prevent the stack from growing unbounded * test: Add a second stack overflow test * fix: Ensure the second stack overflow issue errors Since this test has nested binary expressions it does not overflow the stack or hit the depth checking path in the parser so we also needed the second check. * chore: make generate * fix: Don't try to use stacker on wasm * chore: Don't use stacker on wasm * chore: make generate * chore: Don't use stacker on windows either Not sure why
- Loading branch information
Markus Westerlind
authored
Sep 19, 2022
1 parent
97534a4
commit 642ca27
Showing
10 changed files
with
329 additions
and
29 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.