mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-03 17:31:03 +00:00
- Correctly handle empty packets (Found by James Yonan)
This commit is contained in:
parent
ce30bdf624
commit
8639578f58
|
@ -2,6 +2,7 @@ PolarSSL ChangeLog
|
||||||
|
|
||||||
= Version 1.1.4 released on 2012-05-30
|
= Version 1.1.4 released on 2012-05-30
|
||||||
Bugfix
|
Bugfix
|
||||||
|
* Correctly handle empty packets (Found by James Yonan)
|
||||||
* Fixed potential heap corruption in x509_name allocation
|
* Fixed potential heap corruption in x509_name allocation
|
||||||
* Fixed single RSA test that failed on Big Endian systems (Closes ticket #54)
|
* Fixed single RSA test that failed on Big Endian systems (Closes ticket #54)
|
||||||
|
|
||||||
|
|
|
@ -785,7 +785,7 @@ static int ssl_decrypt_buf( ssl_context *ssl )
|
||||||
/*
|
/*
|
||||||
* Always compute the MAC (RFC4346, CBCTIME).
|
* Always compute the MAC (RFC4346, CBCTIME).
|
||||||
*/
|
*/
|
||||||
if( ssl->in_msglen <= ssl->maclen + padlen )
|
if( ssl->in_msglen < ssl->maclen + padlen )
|
||||||
{
|
{
|
||||||
SSL_DEBUG_MSG( 1, ( "msglen (%d) < maclen (%d) + padlen (%d)",
|
SSL_DEBUG_MSG( 1, ( "msglen (%d) < maclen (%d) + padlen (%d)",
|
||||||
ssl->in_msglen, ssl->maclen, padlen ) );
|
ssl->in_msglen, ssl->maclen, padlen ) );
|
||||||
|
|
Loading…
Reference in a new issue