|
@@ -4964,7 +4964,7 @@ get_next_token(memarea_t *area,
|
|
|
goto check_object;
|
|
|
|
|
|
obstart = *s;
|
|
|
- if (*s+16 >= eol || memchr(*s+11,'\0',eol-*s-16) ||
|
|
|
+ if (eol - *s <= 16 || memchr(*s+11,'\0',eol-*s-16) ||
|
|
|
strcmp_len(eol-5, "-----", 5) ||
|
|
|
(eol-*s) > MAX_UNPARSED_OBJECT_SIZE) {
|
|
|
RET_ERR("Malformed object: bad begin line");
|