Skip to content

fix(encoding): validate block bitpacking payloads - #8328

Draft
Xuanwo wants to merge 1 commit into
xuanwo/generic-block-v5-4-cascadefrom
xuanwo/generic-block-v5-5-bitpacking-safety
Draft

fix(encoding): validate block bitpacking payloads#8328
Xuanwo wants to merge 1 commit into
xuanwo/generic-block-v5-4-cascadefrom
xuanwo/generic-block-v5-5-bitpacking-safety

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Stack 5 of 10 for Lance generic block sequence compression.

Block bitpacking previously trusted header-derived widths and payload lengths too far into decompression. This makes the codec reject invalid bit widths, misaligned chunks, inconsistent value counts, and truncated or oversized payloads before unpacking, including the valid zero-width case.

Valid persisted bytes are unchanged; the user-visible difference is that malformed data returns a bounded corruption error instead of reaching unchecked decode assumptions.

Stack navigation

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

Labels

A-encoding Encoding, IO, file reader/writer bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant