Skip to content

[6.40] [ml] Fix out-of-bounds read in filtered cluster split#22441

Merged
guitargeek merged 1 commit into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_22440
Jun 1, 2026
Merged

[6.40] [ml] Fix out-of-bounds read in filtered cluster split#22441
guitargeek merged 1 commit into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_22440

Conversation

@root-project-bot
Copy link
Copy Markdown

Backport of #22440, requested by @guitargeek.

In RClusterLoader::LoadTrainingClusterInto the boundary entry was read
from rdfEntries unconditionally before checking valCount, so when one
side of the split is empty the access was past end-of-vector. This was
silent in non-hardened builds but trips libstdc++ assertions (e.g. with
libcxxhardeningfast), aborting test09_filtered_last_chunk.

Compute the boundary only when the corresponding rdfEntries index is
in-bounds, falling back to the cluster endpoint otherwise.

(cherry picked from commit 6183bad)
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 31, 2026

Test Results

    22 files      22 suites   3d 9h 47m 1s ⏱️
 3 853 tests  3 853 ✅ 0 💤 0 ❌
76 102 runs  76 102 ✅ 0 💤 0 ❌

Results for commit 9d8feb8.

♻️ This comment has been updated with latest results.

@guitargeek guitargeek merged commit 3f4f55d into root-project:v6-40-00-patches Jun 1, 2026
44 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean build Ask CI to do non-incremental build on PR pr:backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants