diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-25 15:57:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-25 15:57:17 +0100 |
commit | 53ee76478db9ef0ce457773b8b158fb30c381a39 (patch) | |
tree | 07598c3aaf02819e6c6f75c5effc075ce61dd204 /contrib | |
parent | 03a061ddc157d42d37a6c68950445c964f6d6d52 (diff) | |
download | rspamd-53ee76478db9ef0ce457773b8b158fb30c381a39.tar.gz rspamd-53ee76478db9ef0ce457773b8b158fb30c381a39.zip |
[Minor] Disable asan for specific bad parts of the code
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/lc-btrie/btrie.c | 2 | ||||
-rw-r--r-- | contrib/t1ha/t1ha_bits.h | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/contrib/lc-btrie/btrie.c b/contrib/lc-btrie/btrie.c index 8b598b09b..6e529db90 100644 --- a/contrib/lc-btrie/btrie.c +++ b/contrib/lc-btrie/btrie.c @@ -632,7 +632,7 @@ static inline unsigned count_bits_from(tbm_bitmap_t bm, int b) /* extracts a few bits from bitstring, returning them as an integer */ static inline btrie_oct_t extract_bits(const btrie_oct_t *prefix, unsigned pos, - unsigned nbits) + unsigned nbits) RSPAMD_NO_SANITIZE { if (nbits == 0) return 0; diff --git a/contrib/t1ha/t1ha_bits.h b/contrib/t1ha/t1ha_bits.h index 799737d5f..5710d2dbf 100644 --- a/contrib/t1ha/t1ha_bits.h +++ b/contrib/t1ha/t1ha_bits.h @@ -120,10 +120,6 @@ #define __has_extension(x) (0) #endif -#if __has_feature(address_sanitizer) -#define __SANITIZE_ADDRESS__ 1 -#endif - #if __GNUC_PREREQ(4, 4) || defined(__clang__) #if defined(__ia32__) || defined(__e2k__) |