Skip to content

Deserialization must fail if bytes remain after the last entry - #519

Open
SavicStefan wants to merge 2 commits into
apache:masterfrom
SavicStefan:fix_short_buffer_read
Open

Deserialization must fail if bytes remain after the last entry#519
SavicStefan wants to merge 2 commits into
apache:masterfrom
SavicStefan:fix_short_buffer_read

Conversation

@SavicStefan

@SavicStefan SavicStefan commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Require compact tuple sketch deserialization to consume the entire input buffer.

Adds a test for deserializing a wider summary as a narrower summary.

Signed-off-by: Stefan Savić <stefan.savic@databricks.com>
@SavicStefan SavicStefan changed the title Added the check for reading less bytes from buffer Reject unconsumed bytes when deserializing tuple sketches Sep 1, 2026
Signed-off-by: Stefan Savić <stefan.savic@databricks.com>
@SavicStefan
SavicStefan marked this pull request as ready for review September 1, 2026 06:42
@SavicStefan SavicStefan changed the title Reject unconsumed bytes when deserializing tuple sketches Deserialization must fail if bytes remain after the last entry Sep 1, 2026
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