mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
malloc-fail: Fix null deref in xmlSchemaParseUnion
Found with libFuzzer, see #344.
This commit is contained in:
parent
9afb6c5fb8
commit
31844c74df
@ -9017,6 +9017,8 @@ xmlSchemaParseUnion(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema,
|
||||
xmlSchemaQNameRefPtr ref;
|
||||
|
||||
cur = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
|
||||
if (cur == NULL)
|
||||
return (-1);
|
||||
type->base = cur;
|
||||
do {
|
||||
while (IS_BLANK_CH(*cur))
|
||||
|
Loading…
x
Reference in New Issue
Block a user