mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Prevent integer overflow while parsing long strings.
This commit is contained in:
parent
e0388e6c00
commit
16e5605eec
@ -140,7 +140,7 @@ static int skip_sep(LexState *ls)
|
||||
int s = ls->current;
|
||||
lua_assert(s == '[' || s == ']');
|
||||
save_and_next(ls);
|
||||
while (ls->current == '=') {
|
||||
while (ls->current == '=' && count < 0x20000000) {
|
||||
save_and_next(ls);
|
||||
count++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user