mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
parser: Rework shrinking of input buffers
Don't try to grow the input buffer in xmlParserShrink. This makes sure that no memory allocations are made and the function always succeeds. Remove unnecessary invocations of SHRINK. Invoke SHRINK at the end of DTD parsing loops. Shrink before growing.
This commit is contained in:
@@ -27,7 +27,7 @@ XML_HIDDEN void
|
||||
xmlHaltParser(xmlParserCtxtPtr ctxt);
|
||||
XML_HIDDEN int
|
||||
xmlParserGrow(xmlParserCtxtPtr ctxt);
|
||||
XML_HIDDEN int
|
||||
XML_HIDDEN void
|
||||
xmlParserShrink(xmlParserCtxtPtr ctxt);
|
||||
|
||||
#endif /* XML_PARSER_H_PRIVATE__ */
|
||||
|
||||
Reference in New Issue
Block a user