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 1349405: Null pointer dereferences (FORWARD_NULL)
/server/src/com/cloud/network/router/NicProfileHelperImpl.java: 90 in
com.cloud.network.router.NicProfileHelperImpl.createPrivateNicProfileForGateway(com.cloud.network.vpc.VpcGateway,
com.cloud.network.router.VirtualRouter)()
________________________________________________________________________________________________________
*** CID 1349405: Null pointer dereferences (FORWARD_NULL)
/server/src/com/cloud/network/router/NicProfileHelperImpl.java: 90 in
com.cloud.network.router.NicProfileHelperImpl.createPrivateNicProfileForGateway(com.cloud.network.vpc.VpcGateway,
com.cloud.network.router.VirtualRouter)()
84 privateNicProfile =
85 new NicProfile(privateNic, privateNetwork,
privateNic.getBroadcastUri(), privateNic.getIsolationUri(),
_networkModel.getNetworkRate(
86 privateNetwork.getId(), router.getId()),
_networkModel.isSecurityGroupSupportedInNetwork(privateNetwork),
_networkModel.getNetworkTag(
87 router.getHypervisorType(),
privateNetwork));
88 } else {
89 final String netmask =
NetUtils.getCidrNetmask(privateNetwork.getCidr());
>>> CID 1349405: Null pointer dereferences (FORWARD_NULL)
>>> Calling a method on null object "ipVO".
90 final PrivateIpAddress ip =
91 new PrivateIpAddress(ipVO,
privateNetwork.getBroadcastUri().toString(), privateNetwork.getGateway(),
netmask,
92
NetUtils.long2Mac(NetUtils.createSequenceBasedMacAddress(ipVO.getMacAddress())));
93
94 final URI netUri =
BroadcastDomainType.fromString(ip.getBroadcastUri());
95 privateNicProfile.setIPv4Address(ip.getIpAddress());
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://scan.coverity.com/projects/cloudstack?tab=overview
To manage Coverity Scan email notifications for "[email protected]",
click
https://scan.coverity.com/subscriptions/edit?email=dev%40cloudstack.apache.org&token=494aabd5ba647999fa41b6d766646231