-
Notifications
You must be signed in to change notification settings - Fork 514
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
assertion failed: thr->valstack_end - thr->valstack == pre_end - pre_valstack in duk__resize_valstack #2024
Comments
Thanks @renatahodovan, I'll check this out. |
And what kind of output do you expect? That JavaScript code is both invalid and as far from sensical as it can get. It's not even wrong. Garbage in, garbage out. Yes, the error message Duktape generates is incomprehensible, but I don't see why it would qualify as a bug. |
Based on the assertion that was hit, it looks like this could be a potential security issue. |
@fatcerberus Agreed, it might indicate that a valstack resize happens during a valstack resize for some reason and that might be memory unsafe. With a repro this shouldn't be difficult to check. 👍 |
This is now fixed in master, and seems to be fixed by #2108 (verified with git bisect). I'll try to verify this also manually before closing. |
Add bug testcase for GH-2024 (fixed in master), update RELEASES
Duktape version:
OS:
Test case:
Backtrace:
Found by Fuzzinator with grammarinator.
The text was updated successfully, but these errors were encountered: