Skip to content

fix(array): bounds check FixedSizeBinary.Value#923

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/fixed-size-binary-value-bounds
Open

fix(array): bounds check FixedSizeBinary.Value#923
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/fixed-size-binary-value-bounds

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

FixedSizeBinary.Value applied the physical slice offset before validating the logical index. On sliced arrays, negative and one-past-the-end indexes could therefore expose adjacent values from the shared backing buffer.

This adds the standard array bounds check before applying the physical offset and covers valid, negative, and one-past-the-end access on a sliced three-element array.

Tests:

  • go test ./arrow/array -run 'TestFixedSizeBinary(ValueBounds|Slice|$)'
  • go test ./arrow/array

@fallintoplace fallintoplace requested a review from zeroshade as a code owner July 11, 2026 07:36
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