[mw-devel] [Git][arthur/mw][master] js-duk: Fix another stack exhaustion issue

Andrew Price welshbyte at sucs.org
Sat Oct 6 00:27:10 BST 2018


Andrew Price pushed to branch master at Justin Mitchell / mw


Commits:
8b517048 by Andrew Price at 2018-10-06T00:26:43+01:00
js-duk: Fix another stack exhaustion issue

- - - - -


1 changed file:

- src/client/js-duk.c


Changes:

=====================================
src/client/js-duk.c
=====================================
--- a/src/client/js-duk.c
+++ b/src/client/js-duk.c
@@ -717,6 +717,7 @@ int js_exec(char *name, int argc, const char **argv)
 
 	if (!duk_get_global_string(ctx, name) || !duk_is_function(ctx, -1))
 		return 0;
+	duk_require_stack(ctx, argc);
 	for (i = 0; i < argc; i++)
 		duk_push_string(ctx, argv[i]);
 



View it on GitLab: https://projects.sucs.org/arthur/mw/commit/8b517048ca5537b9a56800e6bc00c6ea29ec013e

-- 
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/8b517048ca5537b9a56800e6bc00c6ea29ec013e
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20181006/6df2d658/attachment-0001.html>


More information about the mw-devel mailing list