Shrink input buffer in xmlParseCharDataComplex
Avoid "huge input lookup" error when parsing large text nodes with complex data.
-
mentioned in issue GNOME/libxml2#192 (closed)
-
I think this change needs to also be made in
xmlParseCommentComplex
. Happy to create a test case if you'd like to see it. -
mentioned in issue GNOME/libxml2#200 (closed)
-
This change also needs to be made in
xmlParseCDSect
, see https://github.com/sparklemotion/nokogiri/issues/2132 which provides a test case.Extrapolating, this same logic appears in a few more functions and may need to change there, too:
xmlParseSystemLiteral
xmlParsePubidLiteral
xmlParsePI
-
xmlParseCommentComplex
as noted in my previous comment
-
mentioned in commit flavorjones/libxml2@ca565c1e
-
mentioned in merge request GNOME/libxml2!100 (closed)
-
mentioned in commit afad3721
Please register or sign in to comment