From 6eaa41c15e8a1070c19d8167379f414b8c14e07c Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Mon, 22 Nov 2021 18:16:45 +0800 Subject: [PATCH] Fix overflow error Signed-off-by: Jerry Yu --- library/ssl_tls13_keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_tls13_keys.c b/library/ssl_tls13_keys.c index b77fc7b631..45fb5ed193 100644 --- a/library/ssl_tls13_keys.c +++ b/library/ssl_tls13_keys.c @@ -296,7 +296,7 @@ int mbedtls_ssl_tls13_evolve_secret( int ret = MBEDTLS_ERR_SSL_INTERNAL_ERROR; size_t hlen, ilen; unsigned char tmp_secret[ MBEDTLS_MD_MAX_SIZE ] = { 0 }; - unsigned char tmp_input [ MBEDTLS_MD_MAX_SIZE ] = { 0 }; + unsigned char tmp_input [ MBEDTLS_ECP_MAX_BYTES ] = { 0 }; const mbedtls_md_info_t *md_info; md_info = mbedtls_md_info_from_type( hash_alg );