mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Properly fix loading of embedded bytecode.
This commit is contained in:
parent
54af4e7c76
commit
47df3ae513
@ -446,7 +446,8 @@ GCproto *lj_bcread(LexState *ls)
|
|||||||
setprotoV(L, L->top, pt);
|
setprotoV(L, L->top, pt);
|
||||||
incr_top(L);
|
incr_top(L);
|
||||||
}
|
}
|
||||||
if (ls->p < ls->pe || L->top-1 != bcread_oldtop(L, ls))
|
if ((int32_t)(2*(uint32_t)(ls->pe - ls->p)) > 0 ||
|
||||||
|
L->top-1 != bcread_oldtop(L, ls))
|
||||||
bcread_error(ls, LJ_ERR_BCBAD);
|
bcread_error(ls, LJ_ERR_BCBAD);
|
||||||
/* Pop off last prototype. */
|
/* Pop off last prototype. */
|
||||||
L->top--;
|
L->top--;
|
||||||
|
Loading…
Reference in New Issue
Block a user