New Defects reported by Coverity Scan for libvirt

scan-admin at coverity.com scan-admin at coverity.com
Thu Mar 25 08:45:53 UTC 2021


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-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yqXyKjvBooc6PgQklkMPQjdETL0zD-2BwwS2MT3CUz0PGk4uLnDSo8-2B2mZ3lSeSytwjA-3DZBr1_CkO38-2FnXVYPAlDbR1ZxdHNqvqoSWeUuqu9763V-2FVMwyr2FvXmzPZrc8R44s-2BEENIg5s-2Fy0eUNxcXEi4bXwKRR-2FcZ5p6kXjEJO5rqTk-2FB0WAMVTq4in-2B3aVu52PPxQl6u-2BJ6IpRazCA46zLjUNsmUiqBbcmGkzcTAEbUXuf7VHd6A0tIjhKjLKd5koxV0MPUUCwtI1c8aUjNESL0wVe4Gbfs55iwxjC28EvzjFNmMKoQ-3D




More information about the Libvirt-ci mailing list