mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 00:25:29 +00:00
gcc defines __SANITIZE_ADDRESS__ and not __ADDRESS_SANITIZER__, use the correct #define
This commit is contained in:
@@ -257,7 +257,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[],
|
|||||||
/* Open the library */
|
/* Open the library */
|
||||||
dlopen_flags = RTLD_NOW|RTLD_GLOBAL;
|
dlopen_flags = RTLD_NOW|RTLD_GLOBAL;
|
||||||
|
|
||||||
#if defined(RTLD_DEEPBIND) && !__ADDRESS_SANITIZER__
|
#if defined(RTLD_DEEPBIND) && !__SANITIZE_ADDRESS__
|
||||||
/*
|
/*
|
||||||
* If RTLD_DEEPBIND is available then use it. This can avoid
|
* If RTLD_DEEPBIND is available then use it. This can avoid
|
||||||
* issues with a module using a different version of a system
|
* issues with a module using a different version of a system
|
||||||
|
@@ -133,7 +133,7 @@ load_library(isc_mem_t *mctx, const char *filename, const char *instname,
|
|||||||
instname, filename);
|
instname, filename);
|
||||||
|
|
||||||
flags = RTLD_NOW|RTLD_LOCAL;
|
flags = RTLD_NOW|RTLD_LOCAL;
|
||||||
#if defined(RTLD_DEEPBIND) && !__ADDRESS_SANITIZER__
|
#if defined(RTLD_DEEPBIND) && !__SANITIZE_ADDRESS__
|
||||||
flags |= RTLD_DEEPBIND;
|
flags |= RTLD_DEEPBIND;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -206,9 +206,9 @@
|
|||||||
#define __has_feature(x) 0
|
#define __has_feature(x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* GCC defines __ADDRESS_SANITIZER__, so reuse the macro for clang */
|
/* GCC defines __SANITIZE_ADDRESS__, so reuse the macro for clang */
|
||||||
#if __has_feature(address_sanitizer)
|
#if __has_feature(address_sanitizer)
|
||||||
#define __ADDRESS_SANITIZER__
|
#define __SANITIZE_ADDRESS__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR >= 6)
|
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR >= 6)
|
||||||
|
@@ -109,7 +109,7 @@ load_plugin(isc_mem_t *mctx, const char *modpath, ns_plugin_t **pluginp) {
|
|||||||
REQUIRE(pluginp != NULL && *pluginp == NULL);
|
REQUIRE(pluginp != NULL && *pluginp == NULL);
|
||||||
|
|
||||||
flags = RTLD_LAZY | RTLD_LOCAL;
|
flags = RTLD_LAZY | RTLD_LOCAL;
|
||||||
#if defined(RTLD_DEEPBIND) && !__ADDRESS_SANITIZER__
|
#if defined(RTLD_DEEPBIND) && !__SANITIZE_ADDRESS__
|
||||||
flags |= RTLD_DEEPBIND;
|
flags |= RTLD_DEEPBIND;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user