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 16:39:17 +0000 (12:39 -0400)
commit9604bd17bfb1f116b6d4e56ab1d95e08cde17a06
tree988743601a51a10f3cdcb65d4232c8edd8ae675f
parent53866dcb2a4f927cc421b880cf213351df31f03c
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.03614 seconds and 4 git commands to generate.