[ https://issues.apache.org/jira/browse/ARROW-4669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661691#comment-17661691 ]
Rok Mihevc commented on ARROW-4669: ----------------------------------- This issue has been migrated to [issue #21200|https://github.com/apache/arrow/issues/21200] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [Java] No Bounds checking on ArrowBuf.slice > ------------------------------------------- > > Key: ARROW-4669 > URL: https://issues.apache.org/jira/browse/ARROW-4669 > Project: Apache Arrow > Issue Type: Bug > Components: Java > Reporter: Jacques Nadeau > Assignee: Micah Kornfield > Priority: Critical > Labels: pull-request-available > Fix For: 0.13.0 > > Time Spent: 1h 20m > Remaining Estimate: 0h > > While reviewing some code I realized that there is no bounds checking on > ArrowBuf slicing. Example negative test case that should pass but is > currently failing can be found here: > [https://gist.github.com/jacques-n/737c26b7016ed29dc710d4aba617340e] > It may be that this doesn't cause more problems because the index checks do > exist on memory access but fixing this would make it much easier to > understand where a code mistake was made. -- This message was sent by Atlassian Jira (v8.20.10#820010)