Fix too small buffer in a test

This commit is contained in:
Gilles Peskine 2019-02-22 11:30:14 +01:00
parent 0efa8567d8
commit b46f1bd451

View file

@ -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 );