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?
to your account
mruby overflows the stack during codegen with the following POC. The file is almost a megabyte in size, so I'm not inlining it here.
It seems the crash was introduced with 103ef78. Before that commit, the same POC makes mruby exit with:
#<NoMethodError: no method named d>
The text was updated successfully, but these errors were encountered:
It's system stack overflow. I think 103ef78 made C stack consumed slightly more.
There's no easy way to detect this kind of overflow. Probably we can limit recursion levels explicitly.
Sorry, something went wrong.
That sounds reasonable given that this kind of source file is unlikely to represent a practically useful program and this approach seems to work reasonably well in other places it's been added.
No branches or pull requests