Hi,

Please find the latest report on new defect(s) introduced to libvirt found with Coverity Scan.

Defect Details

** 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);

  

View Defects in Coverity Scan

Best regards,

The Coverity Scan Admin Team