1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-24 21:33:51 +03:00

valid: Report malloc failure in xmlValidateOneElement

This commit is contained in:
Nick Wellnhofer 2024-03-26 14:30:57 +01:00
parent 887ad90a1a
commit 9bce9dbb19

View File

@ -5894,8 +5894,10 @@ xmlValidateOneElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
fullname = xmlBuildQName(child->name, child->ns->prefix,
fn, 50);
if (fullname == NULL)
if (fullname == NULL) {
xmlVErrMemory(ctxt);
return(0);
}
cont = elemDecl->content;
while (cont != NULL) {
if (cont->type == XML_ELEMENT_CONTENT_ELEMENT) {