[libxml2] Fixup limits parser



commit 0df83cae701513ccff1e84fab1dcaf90fcd31eee
Author: Daniel Veillard <veillard redhat com>
Date:   Mon Jul 30 15:41:10 2012 +0800

    Fixup limits parser

 parser.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/parser.c b/parser.c
index fcbd6ed..7ec33b9 100644
--- a/parser.c
+++ b/parser.c
@@ -2011,6 +2011,7 @@ static void xmlGROW (xmlParserCtxtPtr ctxt) {
          ((ctxt->input->cur - ctxt->input->base) > XML_MAX_LOOKUP_LIMIT)) &&
         ((ctxt->options & XML_PARSE_HUGE) == 0)) {
         xmlFatalErr(ctxt, XML_ERR_INTERNAL_ERROR, "Huge input lookup");
+        ctxt->instate = XML_PARSER_EOF;
     }
     xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
     if ((ctxt->input->cur != NULL) && (*ctxt->input->cur == 0) &&



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]