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

Parser stack overflow #19

Open
wwylele opened this issue May 18, 2020 · 0 comments
Open

Parser stack overflow #19

wwylele opened this issue May 18, 2020 · 0 comments

Comments

@wwylele
Copy link
Owner

wwylele commented May 18, 2020

The parser can overflow the stack on relatively small code, like 100 nested [[[...]]] expression. Possible solutions are:

  • use explicit stack on heap
  • Rewrite the expression parsing part to be smarter instead of 10 levels of recursion.

In case of overflow on a too long expression, proper error should be emitted instead of crashing

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

No branches or pull requests

1 participant