Skip to content

[56_maintenance] Prevent Rows row index overflow (#9817) - #9913

Merged
alamb merged 1 commit into
apache:56_maintenancefrom
alamb:alamb/backport_9817
May 6, 2026
Merged

[56_maintenance] Prevent Rows row index overflow (#9817)#9913
alamb merged 1 commit into
apache:56_maintenancefrom
alamb:alamb/backport_9817

Conversation

@alamb

@alamb alamb commented May 5, 2026

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added the arrow Changes to the arrow crate label May 5, 2026
- None.

Rows used unchecked usize arithmetic when validating a requested row
index. In optimized builds, very large indexes could wrap the bounds
check before reaching the unchecked row access path.

This adds checked arithmetic for row index validation and reuses it for
both Rows::row and Rows::row_len.

Yes. This adds regression coverage for overflowing row indexes.

Invalid row indexes that overflow during bounds validation now panic
consistently. There are no API changes.
@alamb
alamb force-pushed the alamb/backport_9817 branch from 77ce877 to 19e092d Compare May 5, 2026 19:42
@alamb
alamb marked this pull request as ready for review May 5, 2026 20:30

@etseidl etseidl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alamb

alamb commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

👍

A machine -- thank you for this

@alamb
alamb merged commit 3855ee5 into apache:56_maintenance May 6, 2026
13 checks passed
@alamb
alamb deleted the alamb/backport_9817 branch May 6, 2026 13:57
@etseidl

etseidl commented May 6, 2026

Copy link
Copy Markdown
Contributor

👍

A machine -- thank you for this

Ran out of gas last night 😅... I'll get to the rest today

@alamb

alamb commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

Thank you . I also asked for help from other commiters. Hopefully others can chip in too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants