[libvirt PATCH] qemu_nbdkit: fix possible null dereference
Peter Krempa
pkrempa at redhat.com
Wed Sep 20 12:10:15 UTC 2023
On Wed, Sep 20, 2023 at 14:01:29 +0200, Pavel Hrdina wrote:
> Function virGetConnectSecret() can return NULL so we need to check it
> since in virSecretGetSecretString() it gets dereferenced.
>
> Reported-by: coverity
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
> src/qemu/qemu_nbdkit.c | 3 +++
> 1 file changed, 3 insertions(+)
Reviewed-by: Peter Krempa <pkrempa at redhat.com>
More information about the libvir-list
mailing list