mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix argument error handling on Lua stacks without a frame.
This commit is contained in:
parent
5e113d0058
commit
7498ee204e
@ -279,6 +279,8 @@ const char *lj_debug_funcname(lua_State *L, TValue *frame, const char **name)
|
|||||||
TValue *pframe;
|
TValue *pframe;
|
||||||
GCfunc *fn;
|
GCfunc *fn;
|
||||||
BCPos pc;
|
BCPos pc;
|
||||||
|
if (frame <= tvref(L->stack))
|
||||||
|
return NULL;
|
||||||
if (frame_isvarg(frame))
|
if (frame_isvarg(frame))
|
||||||
frame = frame_prevd(frame);
|
frame = frame_prevd(frame);
|
||||||
pframe = frame_prev(frame);
|
pframe = frame_prev(frame);
|
||||||
|
Loading…
Reference in New Issue
Block a user