Просмотр исходного кода

Fix recording of __concat metamethod.

Reported by Elias Oelschner. Analyzed by XmiliaH.
Mike Pall 3 лет назад
Родитель
Сommit
3ee3c9cfa9
1 измененных файлов с 1 добавлено и 1 удалено
  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");