Skip to content

Commit 5f0a43a

Browse files
agentzhkyukhin
authored andcommitted
bugfix: fixed assertion failure "lj_record.c:92: rec_check_slots: Assertion `nslots <= 250' failed" found by stressing our edgelang compiler.
Fixes #4053
1 parent a3ba622 commit 5f0a43a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lj_record.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,8 @@ static void rec_varg(jit_State *J, BCReg dst, ptrdiff_t nresults)
18581858
lj_trace_err_info(J, LJ_TRERR_NYIBC);
18591859
}
18601860
}
1861+
if (J->baseslot + J->maxslot >= LJ_MAX_JSLOTS)
1862+
lj_trace_err(J, LJ_TRERR_STACKOV);
18611863
}
18621864

18631865
/* -- Record allocations -------------------------------------------------- */

0 commit comments

Comments
 (0)