Skip to content

fix(arrow/array): adding string boundary checking for (*String).Value - #844

Merged
zeroshade merged 2 commits into
apache:mainfrom
happydave1:fix/string-boundary
Jun 8, 2026
Merged

zeroshade merged 2 commits into
apache:mainfrom
happydave1:fix/string-boundary

Conversation

@happydave1

@happydave1 happydave1 commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Rationale for this change

Fixes #843, a silent data leak caused by missing boundary checking in (*String).Value.

What changes are included in this PR?

This PR adds boundary checking in (*String).Value and (*LargeString).Value and corresponding regression tests in arrow/array/string_test.go. Note that regression tests mirrors the one found in arrow/array/binary_test.go see TestBinarySliceOutOfBounds.

Are these changes tested?

Yes - see new added regression test

Are there any user-facing changes?

No - adds internal boundary checking.

@happydave1 happydave1 changed the title adding string boundary checking fix(arrow/array): adding string boundary checking Jun 8, 2026
@happydave1 happydave1 changed the title fix(arrow/array): adding string boundary checking fix(arrow/array): adding string boundary checking for (*String).Value Jun 8, 2026
@happydave1
happydave1 marked this pull request as ready for review June 8, 2026 08:17
@happydave1
happydave1 requested a review from zeroshade as a code owner June 8, 2026 08:17
@zeroshade
zeroshade merged commit 6b2897c into apache:main Jun 8, 2026
23 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.

arrow/array: (*String).Value silent data leak

2 participants