Skip to content

Conversation

@jerolba
Copy link
Contributor

@jerolba jerolba commented Sep 25, 2025

Rationale for this change

Extracting Binary value from Variant, creating the ByteBuffer doesn't consider the length of the Binary element, creating a ByteBuffer with the size of the remaining Variant byte[]

What changes are included in this PR?

Creating the Binary, configure the limit of ByteBuffer using the calculated length

Are these changes tested?

Yes, in a test that creates Variant with multiple Binary elements that have more content after them.

Are there any user-facing changes?

No

Closes #3315

@jerolba
Copy link
Contributor Author

jerolba commented Nov 18, 2025

@gszadovszky Don't forget about this PR.
Is there a issue with it? Who can merge it?

@gszadovszky
Copy link
Contributor

Sorry, @jerolba, I've indeed forgot about it. Merging...

@gszadovszky gszadovszky merged commit 8e740f0 into apache:master Nov 18, 2025
7 checks passed
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.

Variant binary read does not take length into account

2 participants