]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
library: Exclude the check_memwipe() function from AddressSanitizer
authorTobias Brunner <tobias@strongswan.org>
Thu, 9 Jan 2025 14:20:45 +0000 (15:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 10 Jan 2025 15:53:37 +0000 (16:53 +0100)
Newer versions of AddressSanitizer (e.g. in Ubuntu 24.04) will report
this now as stack-use-after-return.

src/libstrongswan/library.c

index 1521fb261c161684b2ec89025f445df76f7a3b6e..bfc55d4cc8d659787a83083386c3b098ef466c35 100644 (file)
@@ -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;