summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2023-03-14 14:42:36 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2023-03-14 15:16:04 +0100
commitb167c7314497b6cb0d9a587a31874ae0d273ffaa (patch)
tree02ac8f569086416209af591a835aa6b804402962 /include
parent1a6a9d6878ed00265941939adc468a517cd5ef36 (diff)
downloadlibxml2-b167c7314497b6cb0d9a587a31874ae0d273ffaa.tar.gz
parser: Fix short-lived regression causing infinite loops
Fix 3eb6bf03. We really have to halt the parser, so the input buffer gets reset.
Diffstat (limited to 'include')
-rw-r--r--include/private/parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/private/parser.h b/include/private/parser.h
index 628f5a90..18036db5 100644
--- a/include/private/parser.h
+++ b/include/private/parser.h
@@ -23,6 +23,8 @@ XML_HIDDEN void
__xmlErrEncoding(xmlParserCtxtPtr ctxt, xmlParserErrors xmlerr,
const char *msg, const xmlChar *str1,
const xmlChar *str2) LIBXML_ATTR_FORMAT(3,0);
+XML_HIDDEN void
+xmlHaltParser(xmlParserCtxtPtr ctxt);
XML_HIDDEN int
xmlParserGrow(xmlParserCtxtPtr ctxt);
XML_HIDDEN int