Fix: possible NULL dereference in uri_parse_str_urls()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Aug 2018 20:45:09 +0000 (16:45 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Sep 2018 21:29:59 +0000 (17:29 -0400)
commit1925ed698c6c5ce754d3d5a9cc2e8bb71d787cb7
tree792b935fceaf994aef4bf3815875b0edb453d52f
parentb2e24069c180c8dc1579d5770288039db18b7171
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 <jeremie.galarneau@efficios.com>
src/common/uri.c
This page took 0.030206 seconds and 4 git commands to generate.