Skip to content

Fix component search fast path#16548

Open
yawkat wants to merge 4 commits into4.2from
wrong-component
Open

Fix component search fast path#16548
yawkat wants to merge 4 commits into4.2from
wrong-component

Conversation

@yawkat
Copy link
Copy Markdown
Contributor

@yawkat yawkat commented Mar 25, 2026

Motivation:

In certain scenarios, the findComponentForRead fast path would pick the wrong component for a reader index, leading to out-of-bounds reads for those components.

Modification:

Correct comparison.

Result:

No incorrect read.

@yawkat yawkat requested review from chrisvest and franz1981 March 25, 2026 16:22
@chrisvest chrisvest added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Mar 25, 2026
@chrisvest chrisvest added this to the 4.2.12.Final milestone Mar 25, 2026
@chrisvest
Copy link
Copy Markdown
Member

Putting this one on hold for #16550 — after 4.2.12 we can bring back the optimization and merge this fix.

chrisvest and others added 3 commits March 25, 2026 13:57
Motivation:

In certain scenarios, the findComponentForRead fast path would pick the wrong component for a reader index, leading to out-of-bounds reads for those components.

Modification:

Correct comparison.

Result:

No incorrect read.
@chrisvest
Copy link
Copy Markdown
Member

I rebased this PR with a reapply of the opt change underneath.

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

Labels

needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants