From 3ee3c9cfa988339f1bf3068530515e2a6fb179d2 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 2 May 2022 22:33:35 +0200 Subject: [PATCH] Fix recording of __concat metamethod. Reported by Elias Oelschner. Analyzed by XmiliaH. --- src/lj_record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_record.c b/src/lj_record.c index d48908e2..a56876c5 100644 --- a/src/lj_record.c +++ b/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");