You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Bruce Schuchardt (JIRA)" <ji...@apache.org> on 2018/11/06 18:41:00 UTC
[jira] [Resolved] (GEODE-5985) Possible integer overflow before
assigning result to a long variable
[ https://issues.apache.org/jira/browse/GEODE-5985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruce Schuchardt resolved GEODE-5985.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.8.0
> Possible integer overflow before assigning result to a long variable
> --------------------------------------------------------------------
>
> Key: GEODE-5985
> URL: https://issues.apache.org/jira/browse/GEODE-5985
> Project: Geode
> Issue Type: Bug
> Reporter: Bruce Schuchardt
> Assignee: Bruce Schuchardt
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.8.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> There are many places where we are performing a calculation on an int variable and then storing the result in a long variable. For instance,
> long milliseconds = intVariable * 1000;
> For correctness we should cast the int variable to a long or add an L to the numeric multiplier.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)