From: Vsevolod Stakhov Date: Mon, 14 Oct 2024 18:01:43 +0000 (+0100) Subject: [Minor] Fix GCC sanitizer X-Git-Tag: 3.10.1~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9253d8b31e9a99d9f15d85941c5cc1d34dac28f;p=rspamd.git [Minor] Fix GCC sanitizer --- diff --git a/src/rspamd.c b/src/rspamd.c index b6c361cb2..6c204e266 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -1326,7 +1326,7 @@ version(struct rspamd_main *rspamd_main) #ifndef __has_feature #define __has_feature(x) 0 #endif -#if (defined(__has_feature) && __has_feature(address_sanitizer)) || defined(ADDRESS_SANITIZER) +#if (defined(__has_feature) && __has_feature(address_sanitizer)) || defined(ADDRESS_SANITIZER) || defined(__SANITIZE_ADDRESS__) rspamd_printf("ASAN enabled: TRUE\n"); #else rspamd_printf("ASAN enabled: FALSE\n");