Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-5985

Possible integer overflow before assigning result to a long variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              bschuchardt Bruce J Schuchardt
              bschuchardt Bruce J Schuchardt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h