New Defects reported by Coverity Scan for libvirt

Hi, Please find the latest report on new defect(s) introduced to libvirt found with Coverity Scan. 1 new defect(s) introduced to libvirt found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 405516: Null pointer dereferences (REVERSE_INULL) /src/qemu/qemu_validate.c: 3350 in qemuValidateDomainDeviceDefDisk() ________________________________________________________________________________________________________ *** CID 405516: Null pointer dereferences (REVERSE_INULL) /src/qemu/qemu_validate.c: 3350 in qemuValidateDomainDeviceDefDisk() 3344 for (n = disk->src; virStorageSourceIsBacking(n); n = n->backingStore) { 3345 if (qemuDomainValidateStorageSource(n, qemuCaps) < 0) 3346 return -1; 3347 } 3348 3349 if (disk->bus == VIR_DOMAIN_DISK_BUS_SD &&
CID 405516: Null pointer dereferences (REVERSE_INULL) Null-checking "disk->src" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
3350 disk->src && disk->src->encryption && disk->src->encryption->nsecrets > 1) { 3351 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, 3352 _("sd card '%s' does not support multiple encryption secrets"), 3353 disk->dst); 3354 return -1; 3355 }
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
participants (1)
-
scan-admin@coverity.com