-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Compression and empty blocks #23
Labels
Milestone
Comments
ghost
assigned pjbakker
Jun 25, 2013
Fixed in development / 1.3 branch in abf2f8f |
gilles-peskine-arm
added a commit
to gilles-peskine-arm/mbedtls
that referenced
this issue
Sep 5, 2017
…-certs Generate test data for the Charon TLS configuration
gilles-peskine-arm
pushed a commit
to gilles-peskine-arm/mbedtls
that referenced
this issue
Mar 1, 2019
Update usage of PSA ITS to comply with v1.0
iameli
pushed a commit
to livepeer/mbedtls
that referenced
this issue
Dec 5, 2023
Take buffer overflow pull requests
5 tasks
valeriosetti
pushed a commit
to valeriosetti/mbedtls
that referenced
this issue
Dec 5, 2024
Generate static test functions & wrappers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems socat likes to send empty blocks which causes zlib to punt.
To reproduce, run this on a test-server:
Connect to this with a polarssl client. Sending from polar to socat works fine. Just hitting enter on the socat end will make the connection fail on the PolarSSL side with a compression error.
I tracked that down to ssl_decompress_buf() being called with an empty block.
The zlib will return an error in that case.
Putting
near the top of ssl_compress_buf() and ssl_decompress_buf() fixes that.
Versions:
The text was updated successfully, but these errors were encountered: