> On July 16, 2014, 3:35 p.m., Santhosh Edukulla wrote:
> > server/src/com/cloud/vm/UserVmManagerImpl.java, line 856
> > <https://reviews.apache.org/r/23550/diff/1/?file=633467#file633467line856>
> >
> >     I believe we are verifying the max size of an integer? If yes, use 
> > limits,  something like Integer.MAX_VALUE, integer size varies according to 
> > platform. That way we dont need to worry about the numerical value and it 
> > is taken care automatically.
> 
> Rajani Karuturi wrote:
>     Integer.parseInt would never return a value > Integer.MAX_VALUE. It will 
> throw NumberFormatException and NumbersUtil would return the default value 
> -1. The max check would always be false and hence not required. 
>     
>     Also, Java integer size is platform independent and would always be 2^31 
> -1.

Ok, just add coverity to bugs column, as inquired on dev list.


- Santhosh


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23550/#review47889
-----------------------------------------------------------


On July 16, 2014, 12:37 p.m., Rajani Karuturi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/23550/
> -----------------------------------------------------------
> 
> (Updated July 16, 2014, 12:37 p.m.)
> 
> 
> Review request for cloudstack, daan Hoogland and Santhosh Edukulla.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
>     Fixed coverity reported issues in UserVmManagerImpl
> 
> 
> Diffs
> -----
> 
>   server/src/com/cloud/vm/UserVmManagerImpl.java dac4acf 
> 
> Diff: https://reviews.apache.org/r/23550/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Rajani Karuturi
> 
>

Reply via email to