mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Clear bytes used for block padding of SSL 3.0 records. (CVE-2011-4576)
This commit is contained in:
parent
d0dc991c62
commit
27dfffd5b7
4
CHANGES
4
CHANGES
@ -523,6 +523,10 @@
|
||||
|
||||
Changes between 1.0.0e and 1.0.0f [xx XXX xxxx]
|
||||
|
||||
*) Clear bytes used for block padding of SSL 3.0 records.
|
||||
(CVE-2011-4576)
|
||||
[Adam Langley (Google)]
|
||||
|
||||
*) Only allow one SGC handshake restart for SSL/TLS. (CVE-2011-4619)
|
||||
[Adam Langley (Google)]
|
||||
|
||||
|
@ -512,6 +512,9 @@ int ssl3_enc(SSL *s, int send)
|
||||
|
||||
/* we need to add 'i-1' padding bytes */
|
||||
l+=i;
|
||||
/* the last of these zero bytes will be overwritten
|
||||
* with the padding length. */
|
||||
memset(&rec->input[rec->length], 0, i);
|
||||
rec->length+=i;
|
||||
rec->input[l-1]=(i-1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user