Skip to content

Use io.ReadFull for reading decompressed tls data#7

Open
albinstman wants to merge 1 commit intobogdanfinn:masterfrom
albinstman:albinstman-patch-1
Open

Use io.ReadFull for reading decompressed tls data#7
albinstman wants to merge 1 commit intobogdanfinn:masterfrom
albinstman:albinstman-patch-1

Conversation

@albinstman
Copy link
Copy Markdown

Currently it only reads partially from the buffer. In some cases it can return fewer bytes which corrupts the tls handshake.

For me it ends up with "ECDSA signature verification error" because the public key parsed from the malformed certificate doesn't match the server's actual key. But the fix is just to read the buffer in full so we don't end up with a malformed cert.

Encountered error when using profiles.Safari_IOS_17_0 on example.com (should be any profile advertising and using compression)

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