Repository navigation
fix: use correct length in runarray validation - #11668
Merged
Merged
Conversation
Jefffrey
marked this pull request as ready for review
October 18, 2026 09:31
This was referenced Oct 19, 2026
alamb
enabled auto-merge
October 19, 2026 17:59
Contributor
|
Thanks again @Jefffrey and @mbutrovich |
alamb
added a commit
that referenced
this pull request
Oct 20, 2026
- Backport #11668 - For inclusion in #11664 Cherry-pick of a9455d4 Note: the cherry-pick conflicted, so the change was applied by hand. The 59 line does not have the `child_at` / non-integer run end type error refactor, so this keeps the existing `child_data()[0]` / `unreachable!()` code, and the tests use literal `"run_ends"` / `"values"` field names because `Field::REE_*_FIELD_DEFAULT_NAME` constants are not on the 59 line. Co-authored-by: Jeffrey Vo <[email protected]>
alamb
added a commit
that referenced
this pull request
Oct 21, 2026
- Backport #11668 - For inclusion in #11665 Cherry-pick of a9455d4 Co-authored-by: Andrew Lamb <[email protected]>
alamb
added a commit
that referenced
this pull request
Oct 22, 2026
- Backport #11668 - For inclusion in #11666 Cherry-pick of a9455d4 Co-authored-by: Andrew Lamb <[email protected]>
alamb
added a commit
to Rich-T-kid/arrow-rs
that referenced
this pull request
Oct 30, 2026
…pache#11710) # Which issue does this PR close? - Related to apache#11587 and apache#11668 # Rationale for this change While reviewing apache#11668 I was unclear about the relationship between a `RunArray`'s logical `offset` / `len` and the contents of its `run_ends` child as it was not documented anywhere on `RunArray` itself # What changes are included in this PR? Documentation only, on `pub struct RunArray`: # Are these changes tested? Yes, by CI # Are there any significant user-facing changes? Only docs --------- Co-authored-by: Claude Fable 5.1 <[email protected]> Co-authored-by: RIchard Baah <[email protected]>
4 tasks done
lukekim
added a commit
to spiceai/arrow-rs
that referenced
this pull request
Nov 5, 2026
Backport of apache#11668 / apache#11740 (RUSTSEC-2026-0442 / CVE-2026-111959). check_run_ends previously compared the last run end against the run-ends child's length (number of runs), so a RunEndEncoded array whose logical offset+len past the last run end still validated. Reading those rows indexed past the values child. Pass the parent ArrayData's len and offset+len into check_run_ends, and reject when parent_len > 0 and the last run end is short of that bound. Includes the upstream regression tests.
lukekim
added a commit
to spiceai/arrow-rs
that referenced
this pull request
Nov 5, 2026
Backport of apache#11668 / apache#11740 (RUSTSEC-2026-0442 / CVE-2026-111959). check_run_ends previously compared the last run end against the run-ends child's length (number of runs), so a RunEndEncoded array whose logical offset+len past the last run end still validated. Reading those rows indexed past the values child. Pass the parent ArrayData's len and offset+len into check_run_ends, and reject when parent_len > 0 and the last run end is short of that bound. Includes the upstream regression tests.
2 of 3 tasks
lukekim
added a commit
to spiceai/spiceai
that referenced
this pull request
Nov 5, 2026
…0442) TEMPORARY pin to spiceai/arrow-rs#35 (6d198c9ed) until that merges into spiceai-59. Upstream: apache/arrow-rs#11668 / #11740 (59.3.2+). Workspace guard: arrow_tools rejects REE whose last run_end is below offset+len. release/2.3 and release/1.11 stay on HOLD. Enterprise spicehq needs the same bump once SAML SSO access is restored.
This was referenced Nov 5, 2026
tsenart
pushed a commit
to perfloop-oss/spiceai
that referenced
this pull request
Nov 6, 2026
…2) (spiceai#16040) * fix(deps): bump spiceai/arrow-rs for RunEndEncoded OOB (RUSTSEC-2026-0442) TEMPORARY pin to spiceai/arrow-rs#35 (a613c5c13) until that merges into spiceai-59. Upstream fix: apache/arrow-rs#11668 / 59.3.2 backport spiceai#11740. Workspace guard: arrow_tools rejects REE whose last run_end is below offset+len. Enterprise (spicehq) needs the same bump once SAML SSO access is restored. * fix(deps): retarget arrow-rs pin after fmt fix on spiceai#35 Bump TEMPORARY pin a613c5c13 → 6d198c9ed (cargo fmt trailing blank). * fix: rustfmt stray blank before REE guard doc comment Signoff cargo fmt --check failed on a double blank line before the run_end_encoded_past_last_run_is_rejected doc comment in schema.rs. * fix(deps): pin spiceai/arrow-rs to upstream 59.3.2 tip TEMPORARY pin lukim/spiceai-59.3.2-patches @ e56e5cf4e (spiceai/arrow-rs#36) until that merges into spiceai-59.3.2. RUSTSEC-2026-0442 fix is upstream in 59.3.2; supersedes the standalone spiceai/arrow-rs#35 backport. * fix(deps): pin spiceai/arrow-rs to spiceai-59.3.2 merge commit spiceai/arrow-rs#36 merged upstream 59.3.2 into spiceai-59.3.2 as 510ef234e1, whose tree is identical to the previously pinned e56e5cf4e. Repoint all arrow*/parquet pins to it and drop the TEMPORARY marker from the fork-patch ledger. * fix: backtick RunEndEncoded in REE guard doc comment Clippy doc_markdown under the lint gate. Also cite the upstream fix instead of the superseded spiceai/arrow-rs#35. --------- Co-authored-by: Sergei Grebnov <[email protected]>
Jeadie
pushed a commit
to spiceai/arrow-rs
that referenced
this pull request
Nov 9, 2026
…he#11801) - Backport apache#11668 - For inclusion in apache#11666 Cherry-pick of apache@a9455d4 Co-authored-by: Andrew Lamb <[email protected]> (cherry picked from commit 516aa56) spiceai-57.2 adaptation: arrow-rs 57.2 does not have the `checked_len_plus_offset` helper (upstream adds it in 57.3.1, apache#9925). The RunEndEncoded arm does the same overflow check inline with `checked_add`. This fixes RUSTSEC-2026-0442 (apache#11587).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
ArrayDatavalidation does not check that run ends coveroffset + len#11587Rationale for this change
Fix incorrect validation of run arrays
What changes are included in this PR?
Use correct parent logical length when validating run values
Are these changes tested?
Yes
Are there any significant user-facing changes?
No