Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0-M15
-
None
-
None
Description
int pwdAge = ( int ) ( currentTime - changedTime ) / 1000;
Will cast to int before the division which causes overflow of int if the difference is too large. Even with division, it could still be too large so it is unsafe to use an int value for pwdAge. As it is only used for comparison, we can leave it as a long.