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

[Java] Bug on ArrowBuf.setBytes with unsliced ByteBuffers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.7.0
    • Component/s: Java
    • Labels:
      None

      Description

      There is a small bug on ArrowBuf at line 750. It says:

      udle.setBytes(index + offset, buf);
      

      But it should say:

      udle.setBytes(index + offset, newBuf);
      

      There is a wraparound: You can call the method with the already sliced buffer.

        Attachments

          Activity

            People

            • Assignee:
              gortizja Gonzalo Ortiz
              Reporter:
              gortizja Gonzalo Ortiz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: