From: Tobias Brunner Date: Thu, 9 Jan 2025 14:20:45 +0000 (+0100) Subject: library: Exclude the check_memwipe() function from AddressSanitizer X-Git-Tag: android-2.5.3~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24c20803a3e98f642cf272547e44eca033d98805;p=thirdparty%2Fstrongswan.git 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. --- 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;