mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Limit number of arguments for recorded calls.
This commit is contained in:
parent
26fadcd25b
commit
26bb0fe24b
@ -681,7 +681,7 @@ static TRef crec_call_args(jit_State *J, RecordFFData *rd,
|
|||||||
for (n = 0; J->base[n+1]; n++) {
|
for (n = 0; J->base[n+1]; n++) {
|
||||||
CType *d;
|
CType *d;
|
||||||
do {
|
do {
|
||||||
if (!ct->sib)
|
if (!ct->sib || n >= CCI_NARGS_MAX)
|
||||||
lj_trace_err(J, LJ_TRERR_NYICALL);
|
lj_trace_err(J, LJ_TRERR_NYICALL);
|
||||||
ct = ctype_get(cts, ct->sib);
|
ct = ctype_get(cts, ct->sib);
|
||||||
} while (ctype_isattrib(ct->info));
|
} while (ctype_isattrib(ct->info));
|
||||||
|
Loading…
Reference in New Issue
Block a user