Skip to content

Fix component search fast path (#16548)#16602

Merged
chrisvest merged 2 commits into
netty:5.0from
chrisvest:5.0-wrong-component
Apr 9, 2026
Merged

Fix component search fast path (#16548)#16602
chrisvest merged 2 commits into
netty:5.0from
chrisvest:5.0-wrong-component

Conversation

@chrisvest

Copy link
Copy Markdown
Member

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.


Co-authored-by: Chris Vest christianvest_hansen@apple.com
Co-authored-by: Norman Maurer norman_maurer@apple.com

(cherry picked from commit 59aec4b)

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.

---------

Co-authored-by: Chris Vest <christianvest_hansen@apple.com>
Co-authored-by: Norman Maurer <norman_maurer@apple.com>

(cherry picked from commit 59aec4b)
@chrisvest chrisvest added this to the 5.0.0.Final milestone Apr 4, 2026
@chrisvest chrisvest merged commit 5325c59 into netty:5.0 Apr 9, 2026
21 of 23 checks passed
@chrisvest chrisvest deleted the 5.0-wrong-component branch April 9, 2026 05:32
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.

2 participants