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

Fix potential null deref in xmlSchemaIDCFillNodeTables

Merge request !45
This commit is contained in:
zhouzhongyuan 2019-09-02 14:16:12 +08:00 committed by Nick Wellnhofer
parent 5f1f455c2f
commit 4e326a3aa9

View File

@ -23366,6 +23366,8 @@ xmlSchemaIDCFillNodeTables(xmlSchemaValidCtxtPtr vctxt,
* Get/create the IDC binding on this element for the IDC definition.
*/
bind = xmlSchemaIDCAcquireBinding(vctxt, matcher);
if (bind == NULL)
goto internal_error;
if (! WXS_ILIST_IS_EMPTY(bind->dupls)) {
dupls = (xmlSchemaPSVIIDCNodePtr *) bind->dupls->items;