Fix: sessiond: missing goto in error handler
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 27 Mar 2020 15:07:10 +0000 (11:07 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 27 Mar 2020 16:51:29 +0000 (12:51 -0400)
commit35d2bb97d9f85712746d89cf69739da5c5015a8d
treef824d05ba0a588c132e31586c1c273e67071333d
parentd74a5c35a5e21ad8ca220e8ab47c4ffe7b5b7916
Fix: sessiond: missing goto in error handler

The trace_ust inclusion set add/remove methods do not jump to the
end label after checking the `tracker` variable. This can result
in a NULL pointer dereference when an invalid process attribute
is specified.

The same problem appears in save_process_attr_trackers() and
process_attr_value_from_comm().

The missing jump (goto) is added in all cases.

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I473e008e5330a4c3820c8ab7c57ce4f2961e79b2
src/bin/lttng-sessiond/save.c
src/bin/lttng-sessiond/trace-ust.c
src/common/tracker.c
This page took 0.02672 seconds and 4 git commands to generate.