Skip to content

Commit

Permalink
Fix string buffer method recording.
Browse files Browse the repository at this point in the history
Reported and analyzed by vfprintf. LuaJIT#755
  • Loading branch information
Mike Pall committed Oct 12, 2021
1 parent 05f1984 commit bfd0765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lj_ffrecord.c
Expand Up @@ -1123,6 +1123,7 @@ static TRef recff_sbufx_check(jit_State *J, RecordFFData *rd, int arg)
if (!tvisbuf(&rd->argv[arg])) lj_trace_err(J, LJ_TRERR_BADTYPE);
trtype = emitir(IRT(IR_FLOAD, IRT_U8), ud, IRFL_UDATA_UDTYPE);
emitir(IRTGI(IR_EQ), trtype, lj_ir_kint(J, UDTYPE_BUFFER));
J->needsnap = 1;
return ud;
}

Expand Down

0 comments on commit bfd0765

Please sign in to comment.