]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix GCC sanitizer
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 14 Oct 2024 18:01:43 +0000 (19:01 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 14 Oct 2024 18:01:43 +0000 (19:01 +0100)
src/rspamd.c

index b6c361cb28b66e36cf5b8c4cd38369dca964e4f9..6c204e266a53af3a2bad7b4eeb411bc864087e5d 100644 (file)
@@ -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");