New Defects reported by Coverity Scan for libvirt

scan-admin at coverity.com scan-admin at coverity.com
Sat Dec 5 08:43:28 UTC 2020


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 307570:  Error handling issues  (CHECKED_RETURN)
/src/qemu/qemu_command.c: 3320 in qemuBuildMemoryDeviceStr()


________________________________________________________________________________________________________
*** CID 307570:  Error handling issues  (CHECKED_RETURN)
/src/qemu/qemu_command.c: 3320 in qemuBuildMemoryDeviceStr()
3314                 virBufferAddLit(&buf, "unarmed=on,");
3315             }
3316     
3317             virBufferAsprintf(&buf, "memdev=mem%s,id=%s",
3318                               mem->info.alias, mem->info.alias);
3319     
>>>     CID 307570:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "qemuBuildDeviceAddressStr" without checking return value (as is done elsewhere 24 out of 25 times).
3320             qemuBuildDeviceAddressStr(&buf, def, &mem->info, qemuCaps);
3321             break;
3322     
3323         case VIR_DOMAIN_MEMORY_MODEL_NONE:
3324         case VIR_DOMAIN_MEMORY_MODEL_LAST:
3325             break;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yqXyKjvBooc6PgQklkMPQjdETL0zD-2BwwS2MT3CUz0PGk4uLnDSo8-2B2mZ3lSeSytwjA-3DtqFG_CkO38-2FnXVYPAlDbR1ZxdHNqvqoSWeUuqu9763V-2FVMwyzPPrEFeuzjHJZPTTZ7BAhGud5AR122v495y69Zvoz-2BXGmMRdWpsYZbBPuyeaAG9u-2BzO4IklG5QT-2B-2BdNjdpjr41VJsh2RNx3Gl7BXget-2Bv3sR0ETKQddpVkeufULwRXkRQimfhFfBT2BUe165fnrYpyr7J-2FRpUpu0xfIYQ0Tk-2B-2Biumod4Sw34oCJS4Y5vK9wg-3D




More information about the Libvirt-ci mailing list