Fix: sessiond: ust-registry: dereference of NULL pointer on allocation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Feb 2021 19:20:34 +0000 (14:20 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2021 16:43:41 +0000 (11:43 -0500)
commit19d449f1419229a864f9e9e6c54ef03780866027
treec8c06682370b047b383bf0ebfdf6fb7dc10918d1
parentd5af2d078b527da9cbe7a0bf5ca9a2608802cd5c
Fix: sessiond: ust-registry: dereference of NULL pointer on allocation failure

Coverity reports:
1445771 Dereference after null check
Either the check against null is unnecessary, or there may be a null pointer dereference.
In ust_registry_channel_add: Pointer is checked against null but then dereferenced anyway (CWE-476)

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