Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10017

[Java] LargeMemoryUtil.checkedCastToInt has buggy logic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 2.0.0
    • Java

    Description

      LargeMemoryUtil.checkedCastToInt does checked conversion from long -> int if BoundsChecking is enabled. However, it looks like there is a bug in the logic:

      length <= Integer.MAX_VALUE || length >= Integer.MIN_VALUE

      is always true.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pwoody Patrick Woody
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 2h 20m
                  2h 20m