Skip to content

fix(quic): bounds-check token_len in Initial packet parser#244

Merged
domcyrus merged 1 commit intomainfrom
fix/quic-token-len-panic
May 2, 2026
Merged

fix(quic): bounds-check token_len in Initial packet parser#244
domcyrus merged 1 commit intomainfrom
fix/quic-token-len-panic

Conversation

@domcyrus
Copy link
Copy Markdown
Owner

@domcyrus domcyrus commented May 1, 2026

A crafted Initial packet with an oversized variable-length token length pushed the parse offset past the end of the packet, panicking on the next slice. Use checked arithmetic and verify offset is in range before slicing.

A crafted Initial packet with an oversized variable-length token
length pushed the parse offset past the end of the packet, panicking
on the next slice. Use checked arithmetic and verify offset is in
range before slicing.
@domcyrus domcyrus merged commit 8a2c2d2 into main May 2, 2026
21 checks passed
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.

1 participant