Fix: lttng-elf.c: dereferencing pointer before null check
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 9 Oct 2019 13:32:40 +0000 (09:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Oct 2019 15:47:10 +0000 (11:47 -0400)
commita4159715f6854ad49989b6282da998c739b242e5
tree2d519b2678d77bccc5e751ff4c92f9a9c269ae3f
parenta1243fdc865a6d3320d8a74a9e92efa459e68ca4
Fix: lttng-elf.c: dereferencing pointer before null check

Coverity report:
  CID 1405899 (#1 of 1): Dereference before null check (REVERSE_INULL)
  check_after_deref: Null-checking elf suggests that it may be null, but it has
  already been dereferenced on all paths leading to the check.

Reported-by: Coverity (1405899) Dereference before null check
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/lttng-elf.c
This page took 0.025191 seconds and 4 git commands to generate.