Hi,
Please find the latest report on new defect(s) introduced to libvirt found with Coverity
Scan.
3 new defect(s) introduced to libvirt found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)
** CID 416619: Control flow issues (DEADCODE)
/src/conf/virnetworkobj.c: 2002 in virNetworkObjGetMetadata()
________________________________________________________________________________________________________
*** CID 416619: Control flow issues (DEADCODE)
/src/conf/virnetworkobj.c: 2002 in virNetworkObjGetMetadata()
1996 break;
1997
1998 if (virXMLExtractNamespaceXML(def->metadata, uri, &ret) < 0)
1999 return NULL;
2000 break;
2001
>> CID 416619: Control flow issues (DEADCODE)
>> Execution cannot reach this statement: "case
VIR_NETWORK_METADATA_L...".
2002 case VIR_NETWORK_METADATA_LAST:
2003 break;
2004 }
2005
2006 if (!ret)
2007 virReportError(VIR_ERR_NO_NETWORK_METADATA, "%s",
** CID 416618: Insecure data handling (TAINTED_STRING)
________________________________________________________________________________________________________
*** CID 416618: Insecure data handling (TAINTED_STRING)
/tests/networkmetadatatest.c: 297 in main()
291 virNetworkFree(test.net);
292 virConnectClose(test.conn);
293
294 return ret;
295 }
296
>> CID 416618: Insecure data handling (TAINTED_STRING)
>> Passing tainted string "**argv" to "virTestMain", which
cannot accept tainted data.
** CID 416617: Control flow issues (DEADCODE)
/src/conf/virnetworkobj.c: 2083 in virNetworkDefSetMetadata()
________________________________________________________________________________________________________
*** CID 416617: Control flow issues (DEADCODE)
/src/conf/virnetworkobj.c: 2083 in virNetworkDefSetMetadata()
2077 return -1;
2078 }
2079 new = NULL;
2080 }
2081 break;
2082
>> CID 416617: Control flow issues (DEADCODE)
>> Execution cannot reach this statement: "case
VIR_NETWORK_METADATA_L...".
2083 case VIR_NETWORK_METADATA_LAST:
2084 break;
2085 }
2086
2087 return 0;
2088 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my...