From b2c9f0e2df5e2be130c17cf7011f1be9ae813b44 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Wed, 31 Jan 2024 14:38:15 +0000 Subject: [PATCH] Disable poisoning with PSA_CRYPTO_DRIVER_TEST This option causes nested calls to PSA functions, so is not compatible with memory poisoning as it currently stands. Signed-off-by: David Horstmann --- tests/include/test/memory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/include/test/memory.h b/tests/include/test/memory.h index 20fd8d30a5..940d9e6baa 100644 --- a/tests/include/test/memory.h +++ b/tests/include/test/memory.h @@ -27,7 +27,8 @@ * Currently, only Asan (Address Sanitizer) is supported. */ #if defined(MBEDTLS_TEST_HAVE_ASAN) && \ - (__STDC_VERSION__ >= 201112L) + (__STDC_VERSION__ >= 201112L) && \ + !defined(PSA_CRYPTO_DRIVER_TEST) # define MBEDTLS_TEST_MEMORY_CAN_POISON #endif