Fix test under memsan

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-09-12 11:03:23 +01:00
parent 50b0a35494
commit 49d7223036

View file

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