Skip to content

fix(array): validate JSON start offsets#929

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/json-start-offset-seek-validation
Open

fix(array): validate JSON start offsets#929
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/json-start-offset-seek-validation

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What

Validate WithStartOffset before JSON decoding. Negative offsets are rejected, seek errors are returned, and a seeker must report the requested position. The same validation is shared by FromJSON and RecordFromJSON.

Tests

  • go test ./arrow/array -count=1
  • pre-commit run golangci-lint-full --all-files

Regression coverage includes seek errors, incorrect positions, negative offsets that must not call Seek, and a successful offset with the expected decoded values.

@fallintoplace fallintoplace requested a review from zeroshade as a code owner July 11, 2026 08:14
@fallintoplace fallintoplace force-pushed the fix/json-start-offset-seek-validation branch from a1e1d29 to 9019ab8 Compare July 11, 2026 21:34
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