forked from OSchip/llvm-project
compiler-rt: use __GLIBC_PREREQ for SANITIZER_INTERCEPT_GETRANDOM
Summary: Fixes https://github.com/google/oss-fuzz/issues/2836 Reviewers: eugenis Subscribers: dberris, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D68178 llvm-svn: 373284
This commit is contained in:
parent
2d75ee9373
commit
7a6461fcc2
|
@ -13,6 +13,7 @@
|
|||
#ifndef SANITIZER_PLATFORM_INTERCEPTORS_H
|
||||
#define SANITIZER_PLATFORM_INTERCEPTORS_H
|
||||
|
||||
#include "sanitizer_glibc_version.h"
|
||||
#include "sanitizer_internal_defs.h"
|
||||
|
||||
#if SANITIZER_POSIX
|
||||
|
@ -566,10 +567,9 @@
|
|||
#define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
|
||||
#define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
|
||||
|
||||
#define SANITIZER_INTERCEPT_GETRANDOM SI_LINUX
|
||||
#define SANITIZER_INTERCEPT_GETRANDOM (SI_LINUX && __GLIBC_PREREQ(2, 25))
|
||||
#define SANITIZER_INTERCEPT___CXA_ATEXIT SI_NETBSD
|
||||
#define SANITIZER_INTERCEPT_ATEXIT SI_NETBSD
|
||||
#define SANITIZER_INTERCEPT_PTHREAD_ATFORK SI_NETBSD
|
||||
|
||||
|
||||
#endif // #ifndef SANITIZER_PLATFORM_INTERCEPTORS_H
|
||||
|
|
Loading…
Reference in New Issue