Fix: trace-chunk: dereference after null check of old_path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 23:20:18 +0000 (18:20 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 23:20:18 +0000 (18:20 -0500)
commit83fa31bf7c7ba6cb7837e35762059a090343f376
treefa03898bef66b140d2c9d3686e09cd6e787c65b5
parent9ac61dbdc19140c00f345aae570f18abbe079852
Fix: trace-chunk: dereference after null check of old_path

1412200 Dereference after null check

Either the check against null is unnecessary, or there may be a null
pointer dereference.

In lttng_trace_chunk_rename_path_no_lock: Pointer is checked against
null but then dereferenced anyway (CWE-476)

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I33088fecc62141bd6092a7ab8c0a8c29a36347e8
src/common/trace-chunk.c
This page took 0.036618 seconds and 5 git commands to generate.