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 483430: Null pointer dereferences (FORWARD_NULL)
_____________________________________________________________________________________________
*** CID 483430: Null pointer dereferences (FORWARD_NULL)
/src/qemu/qemu_tpm.c: 855 in qemuTPMEmulatorBuildCommand()
849 virCommandClearCaps(cmd);
850
851 virCommandAddArgList(cmd, "socket", "--ctrl", NULL);
852 virCommandAddArgFormat(cmd, "type=unixio,path=%s,mode=0600",
853 tpm->data.emulator.source->data.nix.path);
854
>>> CID 483430: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "persistentTPMDef" to "qemuTPMVirCommandSwtpmAddTPMState", which dereferences it.
855 qemuTPMVirCommandSwtpmAddTPMState(cmd, &tpm->data.emulator, persistentTPMDef, cfg);
856
857 virCommandAddArg(cmd, "--log");
858 if (tpm->data.emulator.debug != 0)
859 virCommandAddArgFormat(cmd, "file=%s,level=%u", tpm->data.emulator.logfile,
860 tpm->data.emulator.debug);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libvirt?tab=overview