diff options
author | zhouzhongyuan <zhouzhongyuan@huawei.com> | 2019-09-02 14:16:12 +0800 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2019-09-13 15:57:25 +0200 |
commit | 4e326a3aa93b1709118a814c013a0178028dd9a3 (patch) | |
tree | 2913515d85394a9def8157402efe1808e64c3ade /xmlschemas.c | |
parent | 5f1f455c2f659eb6c82adf2b1d3ae00466367873 (diff) | |
download | libxml2-4e326a3aa93b1709118a814c013a0178028dd9a3.tar.gz |
Fix potential null deref in xmlSchemaIDCFillNodeTables
Merge request !45
Diffstat (limited to 'xmlschemas.c')
-rw-r--r-- | xmlschemas.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmlschemas.c b/xmlschemas.c index f3d2664b..457f7d4a 100644 --- a/xmlschemas.c +++ b/xmlschemas.c @@ -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; |