Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1869

Decimal conversion from ByteBuffer ignores buffer position and limit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0, 1.8.1
    • Fix Version/s: 1.8.2
    • Component/s: java
    • Labels:
      None

      Description

      The decimal conversion from a ByteBuffer currently copies the buffer contents into an array, but then calls array on the buffer and uses the buffer's internal array rather than the copied bytes. The result is that the constructed Decimal value uses whatever the buffer contained without using its position or limit.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rdblue Ryan Blue
                Reporter:
                rdblue Ryan Blue
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: