You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by sc...@coverity.com on 2015/02/23 15:03:24 UTC
New Defects reported by Coverity Scan for cloudstack
Hi,
Please find the latest report on new defect(s) introduced to cloudstack found with Coverity Scan.
1 new defect(s) introduced to cloudstack found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1271073: Null pointer dereferences (NULL_RETURNS)
/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java: 1913 in com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(com.cloud.agent.api.storage.ResizeVolumeCommand)()
________________________________________________________________________________________________________
*** CID 1271073: Null pointer dereferences (NULL_RETURNS)
/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java: 1913 in com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(com.cloud.agent.api.storage.ResizeVolumeCommand)()
1907 resizecmd.add("-t", type);
1908 resizecmd.add("-r", String.valueOf(shrinkOk));
1909 resizecmd.add("-v", vmInstanceName);
1910 String result = resizecmd.execute();
1911
1912 if (result != null) {
>>> CID 1271073: Null pointer dereferences (NULL_RETURNS)
>>> Calling a method on null object "type".
1913 if(type.equals(notifyOnlyType)) {
1914 return new ResizeVolumeAnswer(cmd, true, "Resize succeeded, but need reboot to notify guest");
1915 } else {
1916 return new ResizeVolumeAnswer(cmd, false, result);
1917 }
1918 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/943?tab=overview
To manage Coverity Scan email notifications for "dev@cloudstack.apache.org", click https://scan.coverity.com/subscriptions/edit?email=dev%40cloudstack.apache.org&token=494aabd5ba647999fa41b6d766646231 .