mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-16 07:50:12 +00:00
Potential buffer-overflow for ssl_read_record()
This commit is contained in:
parent
3f5b753654
commit
8648f04e47
|
@ -1,5 +1,10 @@
|
|||
PolarSSL ChangeLog
|
||||
|
||||
= Branch 1.1
|
||||
Security
|
||||
* Potential buffer-overflow for ssl_read_record() (independently found by
|
||||
both TrustInSoft and Paul Brodeur of Leviathan Security Group)
|
||||
|
||||
= Version 1.1.7 released on 2013-06-19
|
||||
Changes
|
||||
* HAVEGE random generator disabled by default
|
||||
|
|
|
@ -1159,7 +1159,7 @@ int ssl_read_record( ssl_context *ssl )
|
|||
/*
|
||||
* TLS encrypted messages can have up to 256 bytes of padding
|
||||
*/
|
||||
if( ssl->minor_ver == SSL_MINOR_VERSION_1 &&
|
||||
if( ssl->minor_ver >= SSL_MINOR_VERSION_1 &&
|
||||
ssl->in_msglen > ssl->minlen + SSL_MAX_CONTENT_LEN + 256 )
|
||||
{
|
||||
SSL_DEBUG_MSG( 1, ( "bad message length" ) );
|
||||
|
|
Loading…
Reference in a new issue