commit | 3aac9a7d9e0c828ae6052a87c168dd2748c4da2f | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Tue Dec 01 12:24:26 2020 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Dec 02 12:20:04 2020 +0100 |
tree | e0241008d0cb03f7554386bc12c9b34f8ea77185 | |
parent | 6a9cb0f487860384f37cfe0a38befd5a9b53a69a [diff] [blame] |
schema BUGFIX dereferencing possible NULL pointers
diff --git a/src/parser_yin.c b/src/parser_yin.c index 8949665..ab73964 100644 --- a/src/parser_yin.c +++ b/src/parser_yin.c
@@ -3258,6 +3258,7 @@ struct lysp_stmt *last_subelem = NULL, *new_subelem = NULL; assert(ctx->xmlctx->status == LYXML_ELEMENT); + assert(exts); LY_ARRAY_NEW_RET(ctx->xmlctx->ctx, *exts, e, LY_EMEM);