-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
quiche: Fix crash in Quic listener upon request without authority #15799
Conversation
Signed-off-by: Dan Zhang <[email protected]>
I think this is related to testing with https://github.com/kazu-yamamoto/h3spec/
|
@@ -142,7 +142,7 @@ void EnvoyQuicServerStream::OnInitialHeadersComplete(bool fin, size_t frame_len, | |||
} | |||
std::unique_ptr<Http::RequestHeaderMapImpl> headers = | |||
quicHeadersToEnvoyHeaders<Http::RequestHeaderMapImpl>(header_list); | |||
if (!Http::HeaderUtility::authorityIsValid(headers->Host()->value().getStringView())) { | |||
if (Http::HeaderUtility::requestHeadersValid(*headers) != absl::nullopt) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Want to set details here or wait and add them all at once?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will set invalid http header response code in #15753
Signed-off-by: Dan Zhang <[email protected]>
/assign @mattklein123 |
@danzh2010 @alyssawilk I can confirm the fix works with no crashes using h3spec 0.1.6. Thanks |
Signed-off-by: Dan Zhang [email protected]
Commit Message: Fix a recent regression where Quic listener crash while decoding request headers without
:authority
field.Risk Level: low, WIP feature.
Testing: added integration test