Blame SOURCES/0001-Fix-LJ_MAX_JSLOTS-assertion-in-rec_check_slots.patch

006bc1
commit 31afda31814ec02f82ffb0519bee496c87eeaa89
006bc1
Merge: 8271c64 1c89933
006bc1
Author: Mike Pall <mike>
006bc1
Date:   Tue May 9 21:01:23 2017 +0200
006bc1
006bc1
    Merge branch 'master' into v2.1
006bc1
006bc1
commit 1c89933f129dde76944336c6bfd05297b8d67730
006bc1
Author: Mike Pall <mike>
006bc1
Date:   Tue May 9 20:59:37 2017 +0200
006bc1
006bc1
    Fix LJ_MAX_JSLOTS assertion in rec_check_slots().
006bc1
    
006bc1
    Thanks to Yichun Zhang.
006bc1
006bc1
diff --git a/src/lj_record.c b/src/lj_record.c
006bc1
index 9d0469c..c2d0274 100644
006bc1
--- a/src/lj_record.c
006bc1
+++ b/src/lj_record.c
006bc1
@@ -87,9 +87,9 @@ static void rec_check_slots(jit_State *J)
006bc1
   BCReg s, nslots = J->baseslot + J->maxslot;
006bc1
   int32_t depth = 0;
006bc1
   cTValue *base = J->L->base - J->baseslot;
006bc1
-  lua_assert(J->baseslot >= 1+LJ_FR2 && J->baseslot < LJ_MAX_JSLOTS);
006bc1
+  lua_assert(J->baseslot >= 1+LJ_FR2);
006bc1
   lua_assert(J->baseslot == 1+LJ_FR2 || (J->slot[J->baseslot-1] & TREF_FRAME));
006bc1
-  lua_assert(nslots < LJ_MAX_JSLOTS);
006bc1
+  lua_assert(nslots <= LJ_MAX_JSLOTS);
006bc1
   for (s = 0; s < nslots; s++) {
006bc1
     TRef tr = J->slot[s];
006bc1
     if (tr) {