mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Fixup limits parser
This commit is contained in:
1
parser.c
1
parser.c
@@ -2011,6 +2011,7 @@ static void xmlGROW (xmlParserCtxtPtr ctxt) {
|
|||||||
((ctxt->input->cur - ctxt->input->base) > XML_MAX_LOOKUP_LIMIT)) &&
|
((ctxt->input->cur - ctxt->input->base) > XML_MAX_LOOKUP_LIMIT)) &&
|
||||||
((ctxt->options & XML_PARSE_HUGE) == 0)) {
|
((ctxt->options & XML_PARSE_HUGE) == 0)) {
|
||||||
xmlFatalErr(ctxt, XML_ERR_INTERNAL_ERROR, "Huge input lookup");
|
xmlFatalErr(ctxt, XML_ERR_INTERNAL_ERROR, "Huge input lookup");
|
||||||
|
ctxt->instate = XML_PARSER_EOF;
|
||||||
}
|
}
|
||||||
xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
|
xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
|
||||||
if ((ctxt->input->cur != NULL) && (*ctxt->input->cur == 0) &&
|
if ((ctxt->input->cur != NULL) && (*ctxt->input->cur == 0) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user