New Defects reported by Coverity Scan for libvirt
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 912945: Null pointer dereferences (FORWARD_NULL) _____________________________________________________________________________________________ *** CID 912945: Null pointer dereferences (FORWARD_NULL) /src/hypervisor/qemu_agent.c: 2880 in qemuAgentGetGuestDeviceInfo() 2874 return -1; 2875 2876 if ((rc = qemuAgentCommandFull(agent, cmd, &reply, agent->timeout, 2877 report_unsupported)) < 0) 2878 return rc; 2879
CID 912945: Null pointer dereferences (FORWARD_NULL) Passing null pointer "reply" to "virJSONValueObjectGetArray", which dereferences it.
2880 if (!(data = virJSONValueObjectGetArray(reply, "return"))) { 2881 virReportError(VIR_ERR_INTERNAL_ERROR, "%s", 2882 _("qemu agent didn't return an array of devices")); 2883 return -1; 2884 } 2885
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libvirt?tab=overview
participants (1)
-
scan-admin@coverity.com