Debian Codegraph @

extensions/Scribunto/includes/Engines/LuaStandalone/binaries/CVE-2014-5461.patch

raw
1 --- lua5.1-5.1.5.orig/src/ldo.c 2012-01-17 21:27:10.000000000 -0500
2 +++ lua5.1-5.1.5/src/ldo.c 2014-09-02 12:01:46.575057692 -0400
3 @@ -274,7 +274,7 @@
4 CallInfo *ci;
5 StkId st, base;
6 Proto *p = cl->p;
7 - luaD_checkstack(L, p->maxstacksize);
8 + luaD_checkstack(L, p->maxstacksize + p->numparams);
9 func = restorestack(L, funcr);
10 if (!p->is_vararg) { /* no varargs? */
11 base = func + 1;