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

ASF GitHub Bot updated ARROW-10017:
-----------------------------------
    Labels: pull-request-available  (was: )

> [Java] LargeMemoryUtil.checkedCastToInt has buggy logic
> -------------------------------------------------------
>
>                 Key: ARROW-10017
>                 URL: https://issues.apache.org/jira/browse/ARROW-10017
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 1.0.1
>            Reporter: Patrick Woody
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.{color:#9876aa}MAX_VALUE {color}|| length >= 
> Integer.{color:#9876aa}MIN_VALUE{color}
> is always true.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to