1
0
mirror of https://github.com/LuaJIT/LuaJIT.git synced 2025-04-27 13:15:43 +00:00

Force fallback source name for stripped bytecode.

Reported by Lyrth. 
This commit is contained in:
Mike Pall 2024-12-16 14:30:10 +01:00
parent 811e448daa
commit e2e0b1dd2d

@ -443,7 +443,7 @@ static int bcread_header(LexState *ls)
#endif
}
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 {
MSize len = bcread_uleb128(ls);
bcread_need(ls, len);