Skip to content

fix(parquet): validate DataPageV2 decoded length#911

Open
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix-parquet-v2-decoded-length
Open

fix(parquet): validate DataPageV2 decoded length#911
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix-parquet-v2-decoded-length

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What changed

  • Make DataPageV2 V2 readers verify decoded byte counts instead of only checking buffer size.
  • Update readV2Encrypted/readV2Unencrypted to return the actual number of bytes written/read and validate lengths.
  • Enforce decoded-length validation in �6 uncompressed path and encrypted/unencrypted paths.
  • Add regression tests for:
    • compressed DataPageV2 with mismatched codec decode length
    • encrypted uncompressed DataPageV2 with short decrypted output

Validation

  • Added focused regression coverage in .
  • No functional changes to non-V2 paths.

@fallintoplace fallintoplace requested a review from zeroshade as a code owner July 5, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant