From cca1b2324d4fc33f61a504e78ae32805d6c2216d Mon Sep 17 00:00:00 2001 From: "Jack J. Mao" Date: Mon, 20 Mar 2023 01:00:20 +0800 Subject: [PATCH] CVE-2014-5461.patch --- src/ldo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ldo.c b/src/ldo.c index d1bf786..30333bf 100644 --- a/src/ldo.c +++ b/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; -- 2.11.4.GIT