New Defects reported by Coverity Scan for libvirt
by scan-admin@coverity.com
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...
1 year, 1 month
New Defects reported by Coverity Scan for libvirt
by scan-admin@coverity.com
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 416608: Control flow issues (UNREACHABLE)
/src/util/virfile.c: 191 in virCloseRangeImpl()
________________________________________________________________________________________________________
*** CID 416608: Control flow issues (UNREACHABLE)
/src/util/virfile.c: 191 in virCloseRangeImpl()
185 unsigned int last G_GNUC_UNUSED)
186 {
187 #if defined(WITH_SYS_SYSCALL_H) && defined(__NR_close_range)
188 return syscall(__NR_close_range, first, last, 0);
189 #endif
190
>>> CID 416608: Control flow issues (UNREACHABLE)
>>> This code cannot be reached: "*__errno_location() = 38;".
191 errno = ENOSYS;
192 return -1;
193 }
194
195
196 static void
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my...
1 year, 1 month
New Defects reported by Coverity Scan for libvirt
by scan-admin@coverity.com
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 416604: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 416604: Null pointer dereferences (FORWARD_NULL)
/src/qemu/qemu_snapshot.c: 3481 in qemuSnapshotDiscardMetadata()
3475 }
3476 }
3477
3478 if (unlink(snapFile) < 0)
3479 VIR_WARN("Failed to unlink %s", snapFile);
3480 if (update_parent)
>>> CID 416604: Null pointer dereferences (FORWARD_NULL)
>>> Passing "snap" to "virDomainMomentDropParent", which dereferences null "snap->parent".
3481 virDomainMomentDropParent(snap);
3482 virDomainSnapshotObjListRemove(vm->snapshots, snap);
3483
3484 return ret;
3485 }
3486
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my...
1 year, 1 month