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

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