Commit 99bda1e1 authored by Nick Wellnhofer's avatar Nick Wellnhofer

Shrink input buffer in xmlParseCharDataComplex

Avoid "huge input lookup" error when parsing large text nodes with
complex data.
parent 46837d47
Pipeline #220646 passed with stage
in 5 minutes and 19 seconds
......@@ -4571,6 +4571,7 @@ xmlParseCharDataComplex(xmlParserCtxtPtr ctxt, int cdata) {
}
count++;
if (count > 50) {
SHRINK;
GROW;
count = 0;
if (ctxt->instate == XML_PARSER_EOF)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment