]> xenbits.xensource.com Git - people/tklengyel/xen.git/commit
xenstore: add missing NULL check
authorMichael Kurth <mku@amazon.com>
Fri, 26 Feb 2021 14:41:42 +0000 (15:41 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 3 Mar 2021 18:18:45 +0000 (18:18 +0000)
commitff3e7e76813a7958e583e6d7e9090ff9b6df1ecd
treefcb94150a76fc004501df6cec3b51e7ae503c843
parente0ca7b883a27919b968dc2c9d2fe2d0096342071
xenstore: add missing NULL check

In case of allocation error, we should not dereference the obtained
NULL pointer.

This bug was discovered and resolved using Coverity Static Analysis
Security Testing (SAST) by Synopsys, Inc.

Signed-off-by: Michael Kurth <mku@amazon.com>
Signed-off-by: Norbert Manthey <nmanthey@amazon.de>
Reviewed-by: Thomas Friebel <friebelt@amazon.de>
Reviewed-by: Julien Grall <jgrall@amazon.co.uk>
Reviewed-by: Juergen Gross <jgross@suse.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
tools/xenstore/xenstored_core.c