From 518e26712a3ffa12ae4336f127b95b43ce0cd24b Mon Sep 17 00:00:00 2001 From: NTBBloodbath Date: Thu, 19 Jan 2023 18:54:29 -0400 Subject: [PATCH] hotfix(lua5.1): Apply patch for CVE-2014-5461 See https://github.com/natecraddock/ziglua/issues/2 --- lib/lua-5.1.5/src/ldo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lua-5.1.5/src/ldo.c b/lib/lua-5.1.5/src/ldo.c index d1bf786..30333bf 100644 --- a/lib/lua-5.1.5/src/ldo.c +++ b/lib/lua-5.1.5/src/ldo.c @@ -274,7 +274,7 @@ int luaD_precall (lua_State *L, StkId func, int nresults) { CallInfo *ci; StkId st, base; Proto *p = cl->p; - luaD_checkstack(L, p->maxstacksize); + luaD_checkstack(L, p->maxstacksize + p->numparams); func = restorestack(L, funcr); if (!p->is_vararg) { /* no varargs? */ base = func + 1;