You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Li Jin (JIRA)" <ji...@apache.org> on 2017/08/31 15:26:00 UTC

[jira] [Commented] (ARROW-1443) [Java] Bug on ArrowBuf.setBytes with unsliced ByteBuffers

    [ https://issues.apache.org/jira/browse/ARROW-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16149124#comment-16149124 ] 

Li Jin commented on ARROW-1443:
-------------------------------

PR: https://github.com/apache/arrow/pull/1022

> [Java] Bug on ArrowBuf.setBytes with unsliced ByteBuffers
> ---------------------------------------------------------
>
>                 Key: ARROW-1443
>                 URL: https://issues.apache.org/jira/browse/ARROW-1443
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java - Memory
>    Affects Versions: 0.6.0
>            Reporter: Gonzalo Ortiz
>             Fix For: 0.7.0
>
>
> There is a small bug on ArrowBuf at line 750. It says:
> {code}
> udle.setBytes(index + offset, buf);
> {code}
> But it should say:
> {code}
> udle.setBytes(index + offset, newBuf);
> {code}
> There is a wraparound: You can call the method with the already sliced buffer.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)