1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

parser: Fix null deref in xmlStringDecodeEntitiesInt

Short-lived regression.
This commit is contained in:
Nick Wellnhofer
2022-12-25 15:06:51 +01:00
parent c885bebb5d
commit 49b54d7e2b

View File

@@ -2757,6 +2757,7 @@ xmlStringDecodeEntitiesInt(xmlParserCtxtPtr ctxt, const xmlChar *str, int len,
if (ent->flags & XML_ENT_EXPANDING) { if (ent->flags & XML_ENT_EXPANDING) {
xmlFatalErr(ctxt, XML_ERR_ENTITY_LOOP, NULL); xmlFatalErr(ctxt, XML_ERR_ENTITY_LOOP, NULL);
xmlHaltParser(ctxt); xmlHaltParser(ctxt);
if (ent->content != NULL)
ent->content[0] = 0; ent->content[0] = 0;
goto int_error; goto int_error;
} }