Fix: plugin-so.c: dereference after `NULL` check
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 9 Aug 2019 19:09:32 +0000 (15:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:20 +0000 (11:58 -0400)
Found by Coverity Scan.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I44f05edbeec6541b6b65f1f5ead55511d1085a0e

src/lib/plugin/plugin-so.c

index 770b041394e529c32b0657e9929d2f235c034c91..24590cf2041d985237292cfde7e4f23a534ecf25 100644 (file)
@@ -1286,6 +1286,7 @@ int bt_plugin_so_create_all_from_sections(
        size_t cc_descr_attrs_count;
        size_t i;
 
+       BT_ASSERT(shared_lib_handle);
        BT_ASSERT(plugin_set_out);
        *plugin_set_out = NULL;
        descriptor_count = count_non_null_items_in_section(descriptors_begin, descriptors_end);
This page took 0.027334 seconds and 4 git commands to generate.