Skip to content

QUIC: Correctly handle selection of alpn protos#16484

Merged
chrisvest merged 1 commit into
4.2from
alpn_select
Mar 17, 2026
Merged

QUIC: Correctly handle selection of alpn protos#16484
chrisvest merged 1 commit into
4.2from
alpn_select

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

We did miss to increment by 1 which could lead to reading out of bounds and so is a undefined behavior

Modifications:

Correctly increment by 1 as well

Result:

No more undefined behavior during alpn selection by more then 2 protocols.

Motivation:

We did miss to increment by 1 which could lead to reading out of bounds and so is a undefined behavior

Modifications:

Correctly increment by 1 as well

Result:

No more undefined behavior during alpn selection by more then 2 protocols.
@normanmaurer normanmaurer added this to the 4.2.11.Final milestone Mar 16, 2026
@normanmaurer normanmaurer added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Mar 16, 2026
@chrisvest chrisvest merged commit c6360b6 into 4.2 Mar 17, 2026
36 of 38 checks passed
@chrisvest chrisvest deleted the alpn_select branch March 17, 2026 00:52
netty-project-bot pushed a commit that referenced this pull request Mar 17, 2026
Motivation:

We did miss to increment by 1 which could lead to reading out of bounds
and so is a undefined behavior

Modifications:

Correctly increment by 1 as well

Result:

No more undefined behavior during alpn selection by more then 2
protocols.

(cherry picked from commit c6360b6)
@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #16492

@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Mar 17, 2026
normanmaurer added a commit that referenced this pull request Mar 17, 2026
Auto-port of #16484 to 5.0
Cherry-picked commit: c6360b6

---
Motivation:

We did miss to increment by 1 which could lead to reading out of bounds
and so is a undefined behavior

Modifications:

Correctly increment by 1 as well

Result:

No more undefined behavior during alpn selection by more then 2
protocols.

Co-authored-by: Norman Maurer <norman_maurer@apple.com>
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.

3 participants