mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Improve error reporting on stack overflow.
Thanks to Nicolas Lebedenco.
This commit is contained in:
parent
126526ab93
commit
8135de2a02
@ -108,7 +108,7 @@ void LJ_FASTCALL lj_state_growstack(lua_State *L, MSize need)
|
|||||||
n = LJ_STACK_MAX;
|
n = LJ_STACK_MAX;
|
||||||
}
|
}
|
||||||
resizestack(L, n);
|
resizestack(L, n);
|
||||||
if (L->stacksize > LJ_STACK_MAXEX)
|
if (L->stacksize >= LJ_STACK_MAXEX)
|
||||||
lj_err_msg(L, LJ_ERR_STKOV);
|
lj_err_msg(L, LJ_ERR_STKOV);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user