]> xenbits.xensource.com Git - people/tklengyel/xen.git/commit
xenstore: add missing NULL check
authorNorbert Manthey <nmanthey@amazon.de>
Fri, 26 Feb 2021 14:41:35 +0000 (15:41 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 3 Mar 2021 18:11:11 +0000 (18:11 +0000)
commit0bdaa8b035ec9fbdfd4e4f25f0577016c94b7a50
tree8e051d4862011aec00523b7443672c657f5414cc
parent4834936549f788378918da8e9bc97df7dd3ee16d
xenstore: add missing NULL check

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

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

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