Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: Fix overflow when detecting reserved transport params #1934

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hawkinsw
Copy link
Contributor

@hawkinsw hawkinsw commented Feb 6, 2025

In cases where a QUIC connection's transport parameter has an ID of less than 27, checking whether that transport parameter is reserved will result in a panic caused by an attempt to store a negative value into a variable with an unsigned type.

Handling transport parameters with ID of less than 27 specially will prevent this from happening.

In cases where a QUIC connection's transport parameter has an ID of less
than 27, checking whether that transport parameter is reserved will
result in a panic caused by an attempt to store a negative value into a
variable with an unsigned type.

Handling transport parameters with ID of less than 27 specially will
prevent this from happening.

Signed-off-by: Will Hawkins <[email protected]>
@hawkinsw hawkinsw requested a review from a team as a code owner February 6, 2025 06:00
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