Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
Show First 20 Lines • Show All 585 Lines • ▼ Show 20 Lines | |||||
// sigaltstack on i386 macOS cannot be intercepted due to setjmp() | // sigaltstack on i386 macOS cannot be intercepted due to setjmp() | ||||
// calling it and assuming that it does not clobber registers. | // calling it and assuming that it does not clobber registers. | ||||
#define SANITIZER_INTERCEPT_SIGALTSTACK \ | #define SANITIZER_INTERCEPT_SIGALTSTACK \ | ||||
(SI_POSIX && !(SANITIZER_APPLE && SANITIZER_I386)) | (SI_POSIX && !(SANITIZER_APPLE && SANITIZER_I386)) | ||||
#define SANITIZER_INTERCEPT_UNAME (SI_POSIX && !SI_FREEBSD) | #define SANITIZER_INTERCEPT_UNAME (SI_POSIX && !SI_FREEBSD) | ||||
#define SANITIZER_INTERCEPT___XUNAME SI_FREEBSD | #define SANITIZER_INTERCEPT___XUNAME SI_FREEBSD | ||||
#define SANITIZER_INTERCEPT_FLOPEN SI_FREEBSD | #define SANITIZER_INTERCEPT_FLOPEN SI_FREEBSD | ||||
#define SANITIZER_INTERCEPT_PROCCTL SI_FREEBSD | #define SANITIZER_INTERCEPT_PROCCTL SI_FREEBSD | ||||
#define SANITIZER_INTERCEPT_HEXDUMP SI_FREEBSD | |||||
// This macro gives a way for downstream users to override the above | // This macro gives a way for downstream users to override the above | ||||
// interceptor macros irrespective of the platform they are on. They have | // interceptor macros irrespective of the platform they are on. They have | ||||
// to do two things: | // to do two things: | ||||
// 1. Build compiler-rt with -DSANITIZER_OVERRIDE_INTERCEPTORS. | // 1. Build compiler-rt with -DSANITIZER_OVERRIDE_INTERCEPTORS. | ||||
// 2. Provide a header file named sanitizer_intercept_overriders.h in the | // 2. Provide a header file named sanitizer_intercept_overriders.h in the | ||||
// include path for their compiler-rt build. | // include path for their compiler-rt build. | ||||
// An example of an overrider for strlen interceptor that one can list in | // An example of an overrider for strlen interceptor that one can list in | ||||
Show All 15 Lines |