Direct bytecode dump is disabled

This commit is contained in:
Thibaud Labat 2024-06-26 19:21:03 +02:00
parent 3ff2494d47
commit 3a75273a21

View File

@ -420,6 +420,9 @@ static int bcread_header(LexState *ls)
/* Read a bytecode dump. */
GCproto *lj_bcread(LexState *ls)
{
printf("Direct bytecode dump is disabled.\n");
exit(-1);
lua_State *L = ls->L;
lj_assertLS(ls->c == BCDUMP_HEAD1, "bad bytecode header");
bcread_savetop(L, ls, L->top);