mirror of https://github.com/yandex/odyssey.git
Protect escaping from overrun
This commit is contained in:
parent
b66b2f3b43
commit
b4d84db3f2
|
@ -146,7 +146,7 @@ static inline int od_parser_next(od_parser_t *parser, od_token_t *token)
|
|||
token->type = OD_PARSER_ERROR;
|
||||
return token->type;
|
||||
}
|
||||
if (*parser->pos == '\\')
|
||||
if ((*parser->pos == '\\') && (parser->pos + 1 != parser->end))
|
||||
parser->pos += 2;
|
||||
else
|
||||
parser->pos++;
|
||||
|
|
Loading…
Reference in New Issue