mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-09 21:44:28 +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
|
* - cipher_suite 2 bytes
|
||||||
* - legacy_compression_method 1 byte
|
* - 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;
|
p += legacy_session_id_echo_len + 4;
|
||||||
|
|
||||||
/* Case of no extension */
|
/* Case of no extension */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user