Explorar o código

Fix recording of __concat metamethod.

Reported by Elias Oelschner. Analyzed by XmiliaH.
Mike Pall %!s(int64=3) %!d(string=hai) anos
pai
achega
3ee3c9cfa9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lj_record.c

+ 1 - 1
src/lj_record.c

@@ -2043,7 +2043,7 @@ static TRef rec_tnew(jit_State *J, uint32_t ah)
 static TRef rec_cat(jit_State *J, BCReg baseslot, BCReg topslot)
 {
   TRef *top = &J->base[topslot];
-  TValue savetv[5];
+  TValue savetv[5+LJ_FR2];
   BCReg s;
   RecordIndex ix;
   lj_assertJ(baseslot < topslot, "bad CAT arg");