From: Jérémie Galarneau Date: Mon, 20 Aug 2018 20:45:09 +0000 (-0400) Subject: Fix: possible NULL dereference in uri_parse_str_urls() X-Git-Tag: v2.11.0-rc1~140 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;ds=sidebyside;h=70bc2efdc665e3a2e4c6eb000c5879960fb2ee8c;hp=70bc2efdc665e3a2e4c6eb000c5879960fb2ee8c;p=lttng-tools.git Fix: possible NULL dereference in uri_parse_str_urls() The data_url parsing of uri_parse_str_urls assumes that a ctrl URL was provided to check that both URLs point to the same destination. A check for 'ctrl_uris != NULL' is added, but this function needs to be refactored at some point at it is not clear what its role is (i.e. it's probably doing too much). Reported-by: Coverity Scan (1378214 Explicit null dereferenced) Signed-off-by: Jérémie Galarneau ---