From 24c20803a3e98f642cf272547e44eca033d98805 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 9 Jan 2025 15:20:45 +0100 Subject: [PATCH] library: Exclude the check_memwipe() function from AddressSanitizer Newer versions of AddressSanitizer (e.g. in Ubuntu 24.04) will report this now as stack-use-after-return. --- src/libstrongswan/library.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c index 1521fb261c..bfc55d4cc8 100644 --- a/src/libstrongswan/library.c +++ b/src/libstrongswan/library.c @@ -278,6 +278,7 @@ static void do_magic(int *magic, int **out) /** * Check if memwipe works as expected */ +ADDRESS_SANITIZER_EXCLUDE static bool check_memwipe() { int magic = 0xCAFEBABE, *buf, i; -- 2.47.3