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. 3 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 315317: Null pointer dereferences (FORWARD_NULL) ________________________________________________________________________________________________________ *** CID 315317: Null pointer dereferences (FORWARD_NULL) /src/qemu/qemu_blockjob.c: 1291 in qemuBlockJobProcessEventCompletedActiveCommit() 1285 /* in case when the config disk chain didn't match but the disk top seems 1286 * to be identical we need to modify the disk source since the active 1287 * commit makes the top level image invalid. 1288 */ 1289 qemuBlockJobRewriteConfigDiskSource(vm, job->disk, job->data.commit.base); 1290 } else {
CID 315317: Null pointer dereferences (FORWARD_NULL) Passing null pointer "&cfgbaseparent->backingStore" to "g_steal_pointer", which dereferences it.
1291 cfgbase = g_steal_pointer(&cfgbaseparent->backingStore); 1292 cfgdisk->src = cfgbase; 1293 cfgdisk->src->readonly = cfgtop->readonly; 1294 virObjectUnref(cfgtop); 1295 } 1296
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
participants (1)
-
scan-admin@coverity.com