mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-03 02:23:32 -04:00
Fix mbedtls_mpi_core_add_if test aliasing
Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
ba516f7524
commit
560805d665
@ -383,7 +383,7 @@ void mpi_core_add_if( char * input_A, char * input_B,
|
|||||||
|
|
||||||
/* cond = 0 => X unchanged, no carry */
|
/* cond = 0 => X unchanged, no carry */
|
||||||
memcpy( X, B, bytes );
|
memcpy( X, B, bytes );
|
||||||
TEST_EQUAL( 0, mbedtls_mpi_core_add_if( X, B, limbs, 0 ) );
|
TEST_EQUAL( 0, mbedtls_mpi_core_add_if( X, X, limbs, 0 ) );
|
||||||
ASSERT_COMPARE( X, bytes, B, bytes );
|
ASSERT_COMPARE( X, bytes, B, bytes );
|
||||||
|
|
||||||
/* cond = 1 => correct result and carry */
|
/* cond = 1 => correct result and carry */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user