projects
/
babeltrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ea251e8
)
Fix: plugin-so.c: dereference after `NULL` check
author
Philippe Proulx
<eeppeliteloop@gmail.com>
Fri, 9 Aug 2019 19:09:32 +0000
(15:09 -0400)
committer
Philippe Proulx
<eeppeliteloop@gmail.com>
Fri, 9 Aug 2019 19:28:34 +0000
(15:28 -0400)
Found by Coverity Scan.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I44f05edbeec6541b6b65f1f5ead55511d1085a0e
src/lib/plugin/plugin-so.c
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/plugin/plugin-so.c
b/src/lib/plugin/plugin-so.c
index 770b041394e529c32b0657e9929d2f235c034c91..24590cf2041d985237292cfde7e4f23a534ecf25 100644
(file)
--- a/
src/lib/plugin/plugin-so.c
+++ b/
src/lib/plugin/plugin-so.c
@@
-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.026105 seconds
and
4
git commands to generate.