mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Add missing LJ_MAX_JSLOTS check.
Thanks to Yichun Zhang.
This commit is contained in:
parent
1c89933f12
commit
630ff3196a
@ -633,6 +633,8 @@ void lj_record_call(jit_State *J, BCReg func, ptrdiff_t nargs)
|
|||||||
J->framedepth++;
|
J->framedepth++;
|
||||||
J->base += func+1;
|
J->base += func+1;
|
||||||
J->baseslot += func+1;
|
J->baseslot += func+1;
|
||||||
|
if (J->baseslot + J->maxslot >= LJ_MAX_JSLOTS)
|
||||||
|
lj_trace_err(J, LJ_TRERR_STACKOV);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Record tail call. */
|
/* Record tail call. */
|
||||||
|
Loading…
Reference in New Issue
Block a user