Skip to content

Variant binary read does not take length into account #3315

@gszadovszky

Description

@gszadovszky

Describe the bug, including details regarding any error messages, version, and platform.

Reading binary values out of variant returns a ByteBuffer instance sliced from the original input ByteBuffer. The problem is that the length of the binary value is not taken into account during the slicing, so the entire remaining buffer (slice) is returned.
See at VariantUtil.getBinary

Component(s)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions