Fix: lttng: add-trigger: erroneous null check on location return
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 9 Mar 2021 21:21:11 +0000 (16:21 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 9 Mar 2021 21:21:14 +0000 (16:21 -0500)
commitf6e30a8ad86ac3275c23a7dc7ee223c665b10c97
tree19ff273945de93f493abdccd87b70f38b9776208
parent0912b5ea01e701bd8f9e7f5e6a947de1ae26a6a6
Fix: lttng: add-trigger: erroneous null check on location return

1447042 Dereference before null check

There may be a null pointer dereference, or else the comparison against
null is unnecessary.

In parse_kernel_probe_opts: All paths that lead to this null pointer
comparison already dereference the pointer earlier (CWE-476)

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ifcaf1b1854ea7177084ef5433f5a1b386381676a
src/bin/lttng/commands/add_trigger.c
This page took 0.025683 seconds and 4 git commands to generate.