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:
3
parser.c
3
parser.c
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user