mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-26 21:41:34 +03:00
SAX2: Report malloc failure in xmlCheckDefaultedAttributes
This commit is contained in:
6
SAX2.c
6
SAX2.c
@@ -1304,8 +1304,10 @@ process_external_subset:
|
||||
|
||||
if (attr->prefix != NULL) {
|
||||
fulln = xmlStrdup(attr->prefix);
|
||||
fulln = xmlStrcat(fulln, BAD_CAST ":");
|
||||
fulln = xmlStrcat(fulln, attr->name);
|
||||
if (fulln != NULL)
|
||||
fulln = xmlStrcat(fulln, BAD_CAST ":");
|
||||
if (fulln != NULL)
|
||||
fulln = xmlStrcat(fulln, attr->name);
|
||||
} else {
|
||||
fulln = xmlStrdup(attr->name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user