From b46f1bd451e6ec2ffe438dfef1105a07f0211de7 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 22 Feb 2019 11:30:14 +0100 Subject: [PATCH] Fix too small buffer in a test --- tests/suites/test_suite_ecdh.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_ecdh.function b/tests/suites/test_suite_ecdh.function index 2ce4912eb..0645ce798 100644 --- a/tests/suites/test_suite_ecdh.function +++ b/tests/suites/test_suite_ecdh.function @@ -5,7 +5,7 @@ static int load_public_key( int grp_id, const char *point_str, mbedtls_ecp_keypair *ecp ) { int ok = 0; - unsigned char point_buf[MBEDTLS_ECP_MAX_BYTES]; + unsigned char point_buf[MBEDTLS_ECP_MAX_PT_LEN]; size_t point_len = unhexify( point_buf, point_str ); TEST_ASSERT( mbedtls_ecp_group_load( &ecp->grp, grp_id ) == 0 );