Fix: unchecked return value of lttng_directory_handle_create()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 22:41:08 +0000 (17:41 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 22:41:08 +0000 (17:41 -0500)
commitd05a3d937ddc2b666b153e6adaf9610800772b68
treeca94ab669333d85632c883a16acdf1f87587a640
parentf6bef9660a264ebeb2a00e80bf48bec41fb47c1a
Fix: unchecked return value of lttng_directory_handle_create()

Although unlikely in this case (as the path was just created), the
creation of a directory handle can fail and this should always be
accounted-for.

1415129 Dereference null return value

If the function actually returns a null value, a null pointer
dereference will occur.

In lttng_unlinked_file_pool_add_inode: Return value of function which
returns null is dereferenced without checking (CWE-476)

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I914802c25b569320e08265aae251e062bccbd50e
src/common/fd-tracker/inode.c
This page took 0.034963 seconds and 5 git commands to generate.