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.
This commit is contained in:
Tobias Brunner
2025-01-10 16:53:37 +01:00
parent 6f912345c1
commit 24c20803a3
+1
View File
@@ -278,6 +278,7 @@ static void do_magic(int *magic, int **out)
/** /**
* Check if memwipe works as expected * Check if memwipe works as expected
*/ */
ADDRESS_SANITIZER_EXCLUDE
static bool check_memwipe() static bool check_memwipe()
{ {
int magic = 0xCAFEBABE, *buf, i; int magic = 0xCAFEBABE, *buf, i;