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

Java: BinaryDecoder lacks checks on bytes array length

    XMLWordPrintableJSON

    Details

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

      Description

      There are several checks on string length in BinaryDecoder. However, it lacks the same checks for byte arrays.

      • Negative lengths lead to IllegalArgumentException instead of org.apache.avro.AvroRuntimeException
      • Pathologically large (however legal) arrays can be allocated. Some applications will be suffer denial of service if they are forced to allocate 1 GB arrays repeatedly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jkarp John Karp
                Reporter:
                jkarp John Karp
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: