mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Temporarily disable getentropy()/getrandom() when using ASAN
ASAN assumes a recent version of the C library has been installed and may end up intercepting functions that didn't exist if the actual C library is old.
This commit is contained in:
@@ -19017,6 +19017,9 @@ $as_echo_n "checking for getrandom with a standard API... " >&6; }
|
||||
#ifdef HAVE_SYS_RANDOM_H
|
||||
# include <sys/random.h>
|
||||
#endif
|
||||
#ifdef __SANITIZE_ADDRESS__
|
||||
# error A recent libasan version on an old system may intercept nonexistent functions
|
||||
#endif
|
||||
|
||||
int
|
||||
main ()
|
||||
@@ -19063,6 +19066,9 @@ $as_echo_n "checking for getentropy with a standard API... " >&6; }
|
||||
#ifdef HAVE_SYS_RANDOM_H
|
||||
# include <sys/random.h>
|
||||
#endif
|
||||
#ifdef __SANITIZE_ADDRESS__
|
||||
# error A recent libasan version on an old system may intercept nonexistent functions
|
||||
#endif
|
||||
|
||||
int
|
||||
main ()
|
||||
|
||||
Reference in New Issue
Block a user