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:
parent
887ad90a1a
commit
9bce9dbb19
4
valid.c
4
valid.c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user