From: Jérémie Galarneau Date: Fri, 27 Mar 2020 15:27:13 +0000 (-0400) Subject: Fix: sessiond: NULL pointer dereference after NULL check X-Git-Tag: v2.13.0-rc1~701 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=1ad5cb59f0444bf6cbbb57351714fa7f445bf1ac;hp=1ad5cb59f0444bf6cbbb57351714fa7f445bf1ac Fix: sessiond: NULL pointer dereference after NULL check The process attribute value deserialization allows the buffer view to be NULL when the value's type is not USER_NAME nor GROUP_NAME. This is not checked when ensuring that no string is passed (len == 0) in the case of integral values. A NULL check is added to the condition. Reported-by: Coverity Scan Signed-off-by: Jérémie Galarneau Change-Id: I343f747c325f739196284dadd3c407cfb4084268 ---