1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +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,7 +2757,8 @@ xmlStringDecodeEntitiesInt(xmlParserCtxtPtr ctxt, const xmlChar *str, int len,
if (ent->flags & XML_ENT_EXPANDING) {
xmlFatalErr(ctxt, XML_ERR_ENTITY_LOOP, NULL);
xmlHaltParser(ctxt);
ent->content[0] = 0;
if (ent->content != NULL)
ent->content[0] = 0;
goto int_error;
}