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 475577: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 475577: Null pointer dereferences (FORWARD_NULL)
/src/qemu/qemu_agent.c: 2564 in qemuAgentGetLoadAvg()
2558 return -1;
2559
2560 if ((rc = qemuAgentCommandFull(agent, cmd, &reply, agent->timeout,
2561 report_unsupported)) < 0)
2562 return rc;
2563
>>> CID 475577: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "reply" to "virJSONValueObjectGetObject", which dereferences it.
2564 if (!(data = virJSONValueObjectGetObject(reply, "return"))) {
2565 virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
2566 _("qemu agent didn't return an array of loads"));
2567 return -1;
2568 }
2569
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libvirt?tab=overview