mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 13:20:21 +00:00
tls13: Add missing buffer overread check
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
b94854f8e3
commit
2827106199
@ -667,6 +667,7 @@ static int ssl_tls13_is_supported_versions_ext_present(
|
||||
* - cipher_suite 2 bytes
|
||||
* - legacy_compression_method 1 byte
|
||||
*/
|
||||
MBEDTLS_SSL_CHK_BUF_READ_PTR( p, end, legacy_session_id_echo_len + 4 );
|
||||
p += legacy_session_id_echo_len + 4;
|
||||
|
||||
/* Case of no extension */
|
||||
|
Loading…
x
Reference in New Issue
Block a user