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 434246: Null pointer dereferences (NULL_RETURNS)
/tests/qemuxml2argvtest.c: 305 in fakeNetworkGetXMLDesc()
________________________________________________________________________________________________________
*** CID 434246: Null pointer dereferences (NULL_RETURNS)
/tests/qemuxml2argvtest.c: 305 in fakeNetworkGetXMLDesc()
299 unsigned int noflags G_GNUC_UNUSED)
300 {
301 g_autofree char *netname = g_strdup(network->name);
302 g_autofree char *path = NULL;
303 char *xml = NULL;
304
>> CID 434246: Null pointer dereferences (NULL_RETURNS)
>> Dereferencing "strchr(netname, 59)", which is known to be
"NULL".
305 *(strchr(netname, ';')) = '\0';
306
307 path = g_strdup_printf(abs_srcdir "/networkxml2xmlin/%s.xml",
netname);
308
309 if (virFileReadAll(path, 4 * 1024, &xml) < 0)
310 return NULL;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my...