You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Greg Hogan (JIRA)" <ji...@apache.org> on 2016/05/20 20:31:12 UTC

[jira] [Closed] (FLINK-3928) Potential overflow due to 32-bit int arithmetic

     [ https://issues.apache.org/jira/browse/FLINK-3928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Hogan closed FLINK-3928.
-----------------------------
    Resolution: Fixed

Fixed in 723766993ce659f7316c890fcce7d0633957e448

> 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)