Fix: relayd: unchecked allocation result of unlinked file pool
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 6 Apr 2020 16:39:17 +0000 (12:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 6 Apr 2020 18:12:42 +0000 (14:12 -0400)
commita90174363ac96911905b57a06b493046987d3bfc
tree9a934c5596886447d46eee42ddd4271248645db0
parentc7a3d8d64ba1f581a17c0ac75d1da2e47f9e2f7b
Fix: relayd: unchecked allocation result of unlinked file pool

`pool` is not checked for NULL after its allocation. Error out
if the allocation fails.

In lttng_unlinked_file_pool_create: 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: I2a7717701cf3d11de557b9ecdc6609c1f6a1fd6f
src/common/fd-tracker/inode.c
This page took 0.025238 seconds and 4 git commands to generate.