New Defects reported by Coverity Scan for libvirt
scan-admin at coverity.com
scan-admin at coverity.com
Wed Feb 3 08:49:05 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.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 314147: Error handling issues (CHECKED_RETURN)
/src/hyperv/hyperv_driver.c: 1083 in hypervDomainAttachSyntheticEthernetAdapter()
________________________________________________________________________________________________________
*** CID 314147: Error handling issues (CHECKED_RETURN)
/src/hyperv/hyperv_driver.c: 1083 in hypervDomainAttachSyntheticEthernetAdapter()
1077 /*
1078 * Step 1: Create the Msvm_SyntheticEthernetPortSettingData object
1079 * that holds half the settings for the new adapter we are creating
1080 */
1081 portResourceType = g_strdup_printf("%d", MSVM_RASD_RESOURCETYPE_ETHERNET_ADAPTER);
1082
>>> CID 314147: Error handling issues (CHECKED_RETURN)
>>> Calling "virUUIDGenerate" without checking return value (as is done elsewhere 18 out of 20 times).
1083 virUUIDGenerate(vsiGuid);
1084 virUUIDFormat(vsiGuid, guidString);
1085 virtualSystemIdentifiers = g_strdup_printf("{%s}", guidString);
1086
1087 virMacAddrFormat(&net->mac, macString);
1088 macAddressNoColons = virStringReplace(macString, ":", "");
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yqXyKjvBooc6PgQklkMPQjdETL0zD-2BwwS2MT3CUz0PGk4uLnDSo8-2B2mZ3lSeSytwjA-3DTT0D_CkO38-2FnXVYPAlDbR1ZxdHNqvqoSWeUuqu9763V-2FVMwzYQ6rjAqG-2B-2B6xLOMdpI2Pe-2FpoFk5v4u3bSqxPufM2JkNrAHNJJ5s3DJefa950bhc9x-2F5Ix5k7QZKEpDIIXoQ4st4CYSXMroaRZ2MIAyDvT-2BjxIzBxYNigKd0c0E0g-2FNxLp-2BtQIzOzCx-2BHKk7lHWcaRKuhuVJac5HWGpb6OaZA3ryVl2nrkIxF-2FlzdnEaxBIpQ-3D
More information about the Libvirt-ci
mailing list