llvm-project/compiler-rt/lib
Alex Shlyapnikov adbf476a88 [Sanitizers] Check pthread_setcancel{state|type} interceptor arguments for != nullptr.
Summary:
According to man, pthread_setcancelstate's oldstate and
pthread_setcanceltype's oldtype parameters can be nullptr.
Check these parameters for != nullptr before attempting to
access their shadow memory.

Reviewers: dvyukov

Subscribers: kubamracek, llvm-commits

Differential Revision: https://reviews.llvm.org/D39626

llvm-svn: 317494
2017-11-06 17:43:28 +00:00
..
BlocksRuntime [compiler-rt] Test commit: remove some trailing white spaces. 2017-08-25 19:36:30 +00:00
asan [Sanitizers] ASan: detect new/delete calls with mismatched alignment. 2017-10-25 17:21:37 +00:00
builtins [X86] Add Knights Mill CPU to cpu_indicator support to match libgcc. 2017-10-11 20:35:43 +00:00
cfi Limit CFI blacklist entries to specific CFI mode 2017-10-09 17:11:44 +00:00
dfsan [sanitizer_common] Move filesystem-related code out of sanitizer_common.cc 2017-07-22 01:46:40 +00:00
esan [esan] Use stack_t instead of struct sigaltstack (PR34011) 2017-08-22 21:54:37 +00:00
fuzzer [fuzzer] Fix nested mallocs 2017-11-02 04:12:10 +00:00
interception [asan] Intercept heap routines in VS2010 CRT 2017-10-30 17:26:13 +00:00
lsan [LSan] Adjust LSan allocator limits for PPC64. 2017-10-26 01:22:48 +00:00
msan [msan] Intercept __strxfrm_l. 2017-10-25 21:40:17 +00:00
profile Use O_BINARY when opening GCDA file on Windows 2017-10-18 00:22:01 +00:00
safestack Enable SafeStack on NetBSD 2017-08-10 18:40:09 +00:00
sanitizer_common [Sanitizers] Check pthread_setcancel{state|type} interceptor arguments for != nullptr. 2017-11-06 17:43:28 +00:00
scudo [scudo] Rearrange #include order 2017-11-03 23:48:25 +00:00
stats Support compiler-rt builtins 2017-07-28 03:39:38 +00:00
tsan Fix CMake definitions of tsan runtime to make it installed by "install-compiler-rt" 2017-11-04 00:07:20 +00:00
ubsan [sanitizer] Don't intercept signal and sigaction on Fuchsia 2017-10-09 18:29:52 +00:00
ubsan_minimal [ubsan-minimal] Make the interface more compatible with RTUBSan 2017-09-19 06:46:36 +00:00
xray [XRay] [compiler-rt] fix build by including errno.h into FDR mode 2017-10-28 01:35:07 +00:00
CMakeLists.txt [cmake] Add a separate CMake var to control profile runtime 2017-10-02 05:03:55 +00:00