Skip to content

fix(scalar): validate dictionary indices before conversion#927

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/dictionary-scalar-index-bounds
Open

fix(scalar): validate dictionary indices before conversion#927
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/dictionary-scalar-index-bounds

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What

Validate dictionary indices in their native signed or unsigned domain before converting them to int. Use the checked physical index for GetEncodedValue as well, so malformed scalars return an error instead of wrapping on 32-bit or 64-bit platforms.

Tests

  • go test ./arrow/scalar
  • GOOS=linux GOARCH=386 go test -c -o /dev/null ./arrow/scalar
  • pre-commit run golangci-lint-full --all-files

The broader go test ./arrow/... run is otherwise green for the reached packages but the checkout lacks the CSV/parquet fixture directories.

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