Skip to content

Avro decompression codecs apply no output size limit #3980

Description

@sungwy

The codecs in pyiceberg/avro/codecs/ decompress without bounding the output — e.g. bz2.decompress(data) in bzip2.py, and the same shape in the deflate and zstd paths.

The compressed input determines the decompressed size, and no cap or expansion-ratio check is applied.


Issue investigation generated via claude, reviewed by Sung, Kevin, Fokko.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions