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

fix handling of multiple handshake messages in the case of errors #2777

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

marten-seemann
Copy link
Member

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25634.

When receiving a handshake message after another handshake messages that doesn't cause any action from the TLS stack (i.e. Certificate and CertificateVerify), the handshake would run into a deadlock if the first of these handshake messages caused an error in the TLS stack.

We need to make sure that we wait until a message has been fully processed before proceeding with the handshake.

When receiving a handshake message after another handshake messages that
doesn't cause any action from the TLS stack (i.e. Certificate and
CertificateVerify), the handshake would run into a deadlock if the first
of these handshake messages caused an error in the TLS stack.

We need to make sure that we wait until a message has been fully
processed before proceeding with the handshake.
@codecov
Copy link

codecov bot commented Sep 13, 2020

Codecov Report

Merging #2777 into master will increase coverage by 0.18%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2777      +/-   ##
==========================================
+ Coverage   86.72%   86.90%   +0.18%     
==========================================
  Files         128      128              
  Lines       10040     9970      -70     
==========================================
- Hits         8707     8664      -43     
+ Misses       1006      979      -27     
  Partials      327      327              
Impacted Files Coverage Δ
internal/handshake/crypto_setup.go 68.14% <100.00%> (+0.94%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8bf5c78...c9bfde9. Read the comment docs.

@marten-seemann marten-seemann merged commit 654ec69 into master Sep 14, 2020
@marten-seemann marten-seemann deleted the fix-tls-handshake-message-handling branch September 14, 2020 06:59
@aschmahmann aschmahmann mentioned this pull request Feb 18, 2021
73 tasks
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