Explorar o código

Merge branch 'master' into v2.1

Mike Pall %!s(int64=8) %!d(string=hai) anos
pai
achega
6259c0b909
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/lj_record.c

+ 2 - 0
src/lj_record.c

@@ -731,6 +731,8 @@ void lj_record_call(jit_State *J, BCReg func, ptrdiff_t nargs)
   J->framedepth++;
   J->base += func+1+LJ_FR2;
   J->baseslot += func+1+LJ_FR2;
+  if (J->baseslot + J->maxslot >= LJ_MAX_JSLOTS)
+    lj_trace_err(J, LJ_TRERR_STACKOV);
 }
 
 /* Record tail call. */