1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-19 14:50:07 +03:00

entities: Check for illegal entity types in xmlAddEntity

This commit is contained in:
Nick Wellnhofer 2024-03-05 18:06:38 +01:00
parent c1fe9e72ef
commit 50816b8d1a

View File

@ -253,7 +253,7 @@ xmlAddEntity(xmlDocPtr doc, int extSubset, const xmlChar *name, int type,
}
table = dtd->pentities;
break;
case XML_INTERNAL_PREDEFINED_ENTITY:
default:
return(XML_ERR_ARGUMENT);
}
ret = xmlCreateEntity(dtd->doc, name, type, ExternalID, SystemID, content);