Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3928

Potential overflow due to 32-bit int arithmetic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      The following pattern occurs in both LocalClusteringCoefficient.java and TriangleListing.java :

          int scale = parameters.getInt("scale", DEFAULT_SCALE);
      ...
          long vertexCount = 1 << scale;
      

      "1 << scale" may overflow with type "int" due to the use of 32-bit arithmetic

      Attachments

        Issue Links

          Activity

            People

              greghogan Greg Hogan
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: