1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

parser: Fix error handling in xmlParseQNameHashed

Short-lived regression found by OSS-Fuzz.
This commit is contained in:
Nick Wellnhofer
2023-10-02 12:05:36 +02:00
parent 6dd87f5eef
commit fc49679316

View File

@@ -8847,6 +8847,7 @@ xmlParseQNameHashed(xmlParserCtxtPtr ctxt, xmlHashedString *prefix) {
if ((l.name == NULL) || (CUR == ':')) { if ((l.name == NULL) || (CUR == ':')) {
xmlChar *tmp; xmlChar *tmp;
l.name = NULL;
p.name = NULL; p.name = NULL;
if (ctxt->instate == XML_PARSER_EOF) if (ctxt->instate == XML_PARSER_EOF)
return(l); return(l);