Skip to content

fix(array): validate MakeFromData type IDs before constructor lookup#900

Closed
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix-makefromdata-typeid-bounds
Closed

fix(array): validate MakeFromData type IDs before constructor lookup#900
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix-makefromdata-typeid-bounds

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Description

This change makes MakeFromData validate Arrow type IDs before dispatching to the concrete constructor.

Details

  • Removes the 0x3f mask so IDs are not wrapped around.
  • Adds bounds and nil checks before constructor lookup.
  • Panics with a clear invalid data type: <id> message for unsupported types.

Testing

  • Added regression test coverage for invalid Type(64) in TestMakeFromData.

@fallintoplace fallintoplace requested a review from zeroshade as a code owner July 4, 2026 19:42
@fallintoplace fallintoplace changed the title BUG: validate MakeFromData type IDs before constructor lookup Fix MakeFromData invalid type ID handling Jul 4, 2026
@fallintoplace fallintoplace changed the title Fix MakeFromData invalid type ID handling fix(array): validate MakeFromData type IDs before constructor lookup Jul 4, 2026
@fallintoplace

Copy link
Copy Markdown
Contributor Author

Superseded by PR #904

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