Skip to content

Incomplete number length validation in Avro decoder (for BigDecimal) #693

Description

@cowtowncoder

(original report by @tonghuaroot)

Checks for StreamReadConstraints.maxNumberLength are incomplete for Avro decoder wrt types BigDecimal and BigInteger.
All 2.x and 3.x versions appear affected: if so, should be fixed in 2.18 (oldest LTS), merged forward.

EDIT: actually no, only 2.19 and above have AvroParserImpl.decodeBytesDecimal() and related methods. So fix should go in 2.21.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.21avroprocessing-limitsIssues related to limiting aspects of input/output that can be processed without exception

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions