mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
utils: Define ADDRESS_SANITIZER_EXCLUDE to exclude a function from sanitizer
This commit is contained in:
parent
1866d33538
commit
d840df185a
@ -119,6 +119,16 @@ void utils_deinit();
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Address santizer support
|
||||
*/
|
||||
#if __has_feature(address_sanitizer) || \
|
||||
(defined(__GNUC__) && defined(__SANITIZE_ADDRESS__))
|
||||
# define ADDRESS_SANITIZER_EXCLUDE __attribute__((no_sanitize_address))
|
||||
#else
|
||||
# define ADDRESS_SANITIZER_EXCLUDE
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Debug macro to follow control flow
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user