New Defects reported by Coverity Scan for libvirt
by scan-admin@coverity.com
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.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 434340: Null pointer dereferences (FORWARD_NULL)
/src/qemu/qemu_validate.c: 2763 in qemuValidateDomainDeviceDefDiskIOThreads()
________________________________________________________________________________________________________
*** CID 434340: Null pointer dereferences (FORWARD_NULL)
/src/qemu/qemu_validate.c: 2763 in qemuValidateDomainDeviceDefDiskIOThreads()
2757 return -1;
2758 }
2759
2760 for (i = 0; i < ioth->nqueues; i++) {
2761 bool hasMapping;
2762
>>> CID 434340: Null pointer dereferences (FORWARD_NULL)
>>> Dereferencing null pointer "ioth->queues".
2763 if (virBitmapGetBit(queueMap, ioth->queues[i], &hasMapping) < 0) {
2764 virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
2765 _("disk iothread queue '%1$u' mapping out of range"),
2766 ioth->queues[i]);
2767 return -1;
2768 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my...