[
https://issues.apache.org/jira/browse/GEODE-5985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16677005#comment-16677005
]
ASF subversion and git services commented on GEODE-5985:
--------------------------------------------------------
Commit 37d6025381b04b6f6407e506e1af30be0413d4ce in geode's branch
refs/heads/feature/GEODE-5985 from [~bschuchardt]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=37d6025 ]
GEODE-5985 Possible integer overflow before assigning result to a long variable
Fixing problems in IndexElemArray. It was throwing an
ArrayIndexOutOfBoundsException if its capacity was exceeded and this
totally damaged the array as its size would then be a negative number.
With the fix the array's capacity now has a limit of 255 instead of 128.
> 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
> Time Spent: 20m
> 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)