[
https://issues.apache.org/jira/browse/FLINK-3928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15289631#comment-15289631
]
ASF GitHub Bot commented on FLINK-3928:
---------------------------------------
GitHub user greghogan opened a pull request:
https://github.com/apache/flink/pull/2006
[FLINK-3928] [gelly] Potential overflow due to 32-bit int arithmetic
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/greghogan/flink
3928_potential_overflow_due_to_int_arithmetic
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/2006.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2006
----
commit c1604ef41fb02d6ad9bcb847ec03bc105337aba3
Author: Greg Hogan <[email protected]>
Date: 2016-05-18T18:40:33Z
[FLINK-3928] [gelly] Potential overflow due to 32-bit int arithmetic
----
> Potential overflow due to 32-bit int arithmetic
> -----------------------------------------------
>
> Key: FLINK-3928
> URL: https://issues.apache.org/jira/browse/FLINK-3928
> Project: Flink
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Greg Hogan
> Priority: Minor
> Fix For: 1.1.0
>
>
> The following pattern occurs in both LocalClusteringCoefficient.java and
> TriangleListing.java :
> {code}
> int scale = parameters.getInt("scale", DEFAULT_SCALE);
> ...
> long vertexCount = 1 << scale;
> {code}
> "1 << scale" may overflow with type "int" due to the use of 32-bit arithmetic
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)