1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-27 14:03:36 +03:00

malloc-fail: Fix type confusion after xmlSchemaFixupTypeAttributeUses

Found with libFuzzer, see #344.
This commit is contained in:
Nick Wellnhofer 2023-03-05 14:11:55 +01:00
parent 767ae50bc9
commit 73bd5d52ae

View File

@ -14558,6 +14558,7 @@ xmlSchemaFixupTypeAttributeUses(xmlSchemaParserCtxtPtr pctxt,
{
PERROR_INT("xmlSchemaFixupTypeAttributeUses",
"failed to expand attributes");
return(-1);
}
if (pctxt->attrProhibs->nbItems != 0)
prohibs = pctxt->attrProhibs;
@ -14568,6 +14569,7 @@ xmlSchemaFixupTypeAttributeUses(xmlSchemaParserCtxtPtr pctxt,
{
PERROR_INT("xmlSchemaFixupTypeAttributeUses",
"failed to expand attributes");
return(-1);
}
}
}