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

xinclude: Report malloc failure in xmlXIncludeMergeEntities

This commit is contained in:
Nick Wellnhofer 2024-04-27 16:31:01 +02:00
parent 68e440eec4
commit 577fb0e380

View File

@ -1249,8 +1249,10 @@ xmlXIncludeMergeEntities(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc,
if (cur == NULL)
return(-1);
target = xmlCreateIntSubset(doc, cur->name, NULL, NULL);
if (target == NULL)
if (target == NULL) {
xmlXIncludeErrMemory(ctxt);
return(-1);
}
}
source = from->intSubset;