Fix: lttng: add-trigger: erroneous null check on location return
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 5 Mar 2021 12:50:18 +0000 (07:50 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 5 Mar 2021 12:50:23 +0000 (07:50 -0500)
commit5c6ca80951867d21c8a91b36560f0e18e4d2f232
tree6fdf672ded2eeef3dbb92982cc20947bd6cc7de4
parentf8fd8e929b5e1e5a3b3532d51de3d6fa36071795
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)

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