Re: [PATCH] virshFindDisk: fix NULL-dereference of xmlCopyNode() result

2025-07-17 Thread Daniel P . Berrangé via Devel
On Thu, Jul 17, 2025 at 12:55:19PM +0200, Peter Krempa via Devel wrote: > On Wed, Jul 16, 2025 at 16:42:14 +0300, Anastasia Belova wrote: > > xmlCopyNode() may return NULL. Add a check and log an error > > in this case. > > > > Found by Linux Verification Center (linuxtesting.org) with Svace. > >

Re: [PATCH] virshFindDisk: fix NULL-dereference of xmlCopyNode() result

2025-07-17 Thread Peter Krempa via Devel
On Wed, Jul 16, 2025 at 16:42:14 +0300, Anastasia Belova wrote: > xmlCopyNode() may return NULL. Add a check and log an error > in this case. > > Found by Linux Verification Center (linuxtesting.org) with Svace. > > Fixes: 22766a1a53 ("virshFindDisk: Sanitize use of 'tmp' variable") > Signed-off-

[PATCH] virshFindDisk: fix NULL-dereference of xmlCopyNode() result

2025-07-16 Thread Anastasia Belova
xmlCopyNode() may return NULL. Add a check and log an error in this case. Found by Linux Verification Center (linuxtesting.org) with Svace. Fixes: 22766a1a53 ("virshFindDisk: Sanitize use of 'tmp' variable") Signed-off-by: Anastasia Belova --- tools/virsh-domain.c | 4 1 file changed, 4 in