Skip to content

Commit

Permalink
externals/mbedtls: Fix compiler warning by -Wmemset-elt-size
Browse files Browse the repository at this point in the history
Fix a bug that size of memset is wrong.
  • Loading branch information
SPRESENSE committed Nov 14, 2022
1 parent c803489 commit 5664047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion externals/mbedtls/mbedtls-v2/library/ecp.c
Expand Up @@ -1867,7 +1867,7 @@ static int ecp_precompute_comb( const mbedtls_ecp_group *grp,
const unsigned char T_size = 1U << ( w - 1 );
mbedtls_ecp_point *cur, *TT[COMB_MAX_PRE - 1];

memset(TT, 0, COMB_MAX_PRE - 1);
memset(TT, 0, sizeof(TT));

#if defined(MBEDTLS_ECP_RESTARTABLE)
if( rs_ctx != NULL && rs_ctx->rsm != NULL )
Expand Down

0 comments on commit 5664047

Please sign in to comment.