Merge branch 'master' into v2.1

This commit is contained in:
Mike Pall 2024-12-16 14:32:07 +01:00
commit f73e649a95

View File

@ -408,7 +408,7 @@ static int bcread_header(LexState *ls)
#endif #endif
} }
if ((flags & BCDUMP_F_STRIP)) { if ((flags & BCDUMP_F_STRIP)) {
ls->chunkname = lj_str_newz(ls->L, ls->chunkarg); ls->chunkname = lj_str_newz(ls->L, *ls->chunkarg == BCDUMP_HEAD1 ? "=?" : ls->chunkarg);
} else { } else {
MSize len = bcread_uleb128(ls); MSize len = bcread_uleb128(ls);
bcread_need(ls, len); bcread_need(ls, len);