mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-12 14:54:28 +02:00
Improve mbedtls_ct_memmove_left w.r.t. const-flow tests
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
@@ -329,11 +329,10 @@ void mbedtls_ct_memmove_left(int len, int offset)
|
||||
buf_expected[i] = buf[i];
|
||||
}
|
||||
|
||||
//Note: Marking o as secret causes false positives from Memsan
|
||||
//TEST_CF_SECRET(&o, sizeof(o));
|
||||
TEST_CF_SECRET(&o, sizeof(o));
|
||||
TEST_CF_SECRET(buf, l);
|
||||
mbedtls_ct_memmove_left(buf, l, o);
|
||||
//TEST_CF_PUBLIC(&o, sizeof(o));
|
||||
TEST_CF_PUBLIC(&o, sizeof(o));
|
||||
TEST_CF_PUBLIC(buf, l);
|
||||
|
||||
if (l > 0) {
|
||||
|
||||
Reference in New Issue
Block a user