Do not read uninitialized memory
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
f4dd3b6a6d
commit
b2763ef507
1 changed files with 2 additions and 1 deletions
|
@ -810,7 +810,8 @@ void mpi_core_cond_assign( data_t * input_X,
|
||||||
Y, len_Y * sizeof( mbedtls_mpi_uint ) );
|
Y, len_Y * sizeof( mbedtls_mpi_uint ) );
|
||||||
|
|
||||||
else
|
else
|
||||||
TEST_ASSERT( memcmp( X, Y, len_X * sizeof( mbedtls_mpi_uint ) ) != 0 );
|
TEST_ASSERT( memcmp( X, Y, MIN( len_X, len_Y ) *
|
||||||
|
sizeof( mbedtls_mpi_uint ) ) != 0 );
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue