aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2019-12-08 19:32:27 +0100
committerMike Pall <mike>2019-12-08 19:32:27 +0100
commite0388e6c00866c9ee1c7c9aab8a3ba9e15186b5c (patch)
treebd88400e8feba19364b0054ce75c24149a3473e1 /src
parent1d1bac5a65e03e3fc1cebaf3e3699488c10428ff (diff)
downloadluajit-e0388e6c00866c9ee1c7c9aab8a3ba9e15186b5c.tar.gz
luajit-e0388e6c00866c9ee1c7c9aab8a3ba9e15186b5c.tar.bz2
luajit-e0388e6c00866c9ee1c7c9aab8a3ba9e15186b5c.zip
Fix stack check when recording BC_VARG.
Contributed by Yichun Zhang.
Diffstat (limited to 'src')
-rw-r--r--src/lj_record.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_record.c b/src/lj_record.c
index bc4e8a6d..651bbf55 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -1602,6 +1602,8 @@ static void rec_varg(jit_State *J, BCReg dst, ptrdiff_t nresults)
1602 lj_trace_err_info(J, LJ_TRERR_NYIBC); 1602 lj_trace_err_info(J, LJ_TRERR_NYIBC);
1603 } 1603 }
1604 } 1604 }
1605 if (J->baseslot + J->maxslot >= LJ_MAX_JSLOTS)
1606 lj_trace_err(J, LJ_TRERR_STACKOV);
1605} 1607}
1606 1608
1607/* -- Record allocations -------------------------------------------------- */ 1609/* -- Record allocations -------------------------------------------------- */