mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-02-08 16:54:17 +01:00
Fix test under memsan
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
50b0a35494
commit
49d7223036
|
|
@ -185,6 +185,7 @@ void mbedtls_ct_memcmp_single_bit_diff()
|
|||
int result = mbedtls_ct_memcmp(a, b, size);
|
||||
TEST_CF_PUBLIC(a, size);
|
||||
TEST_CF_PUBLIC(b, size);
|
||||
TEST_CF_PUBLIC(&result, sizeof(result));
|
||||
|
||||
TEST_EQUAL(result, 0);
|
||||
|
||||
|
|
@ -199,6 +200,7 @@ void mbedtls_ct_memcmp_single_bit_diff()
|
|||
result = mbedtls_ct_memcmp(a, b, size);
|
||||
TEST_CF_PUBLIC(a, size);
|
||||
TEST_CF_PUBLIC(b, size);
|
||||
TEST_CF_PUBLIC(&result, sizeof(result));
|
||||
|
||||
TEST_ASSERT(result != 0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue