Группа :: Разработка/Прочее
Пакет: lua5.1
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: lua5.1-5.1.5-alt-safe-stack.patch
Скачать
Скачать
diff --git a/src/ldo.c b/src/ldo.c
index d1bf786..48037a0 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;