mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Followup fix for embedded bytecode loader.
This commit is contained in:
parent
1357a25f81
commit
e49863eda1
@ -51,6 +51,7 @@ static LJ_NOINLINE LexChar lex_more(LexState *ls)
|
||||
if (sz >= LJ_MAX_BUF) {
|
||||
if (sz != ~(size_t)0) lj_err_mem(ls->L);
|
||||
sz = ~(uintptr_t)0 - (uintptr_t)p;
|
||||
if (sz >= LJ_MAX_BUF) sz = LJ_MAX_BUF-1;
|
||||
ls->endmark = 1;
|
||||
}
|
||||
ls->pe = p + sz;
|
||||
|
Loading…
Reference in New Issue
Block a user