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:
parent
767ae50bc9
commit
73bd5d52ae
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user