llvm-project/compiler-rt/lib/interception
Reid Kleckner d85f7010cc [windows] Implement GetProcAddress internally to avoid initializing the CRT
ASan uses GetProcAddress to get the address of malloc so it can patch
it. Newer versions of Windows make GetProcAddress initialize the DLL
before returning a function pointer into it. That's perfectly
reasonable, but ASan needs to finish patching malloc before CRT
initialization. So now we roll our own GetProcAddress.

Fixes PR24237

Based on a patch by David Major

Originally written by David Major as part of:
https://hg.mozilla.org/mozilla-central/file/tip/toolkit/xre/WindowsCrtPatch.h

llvm-svn: 245377
2015-08-18 22:38:27 +00:00
..
CMakeLists.txt CMake: Stop using LLVM's custom parse_arguments. NFC 2015-06-19 03:39:24 +00:00
Makefile.mk Revert "Remove support for building sanitizers from Makefile/autoconf build." 2015-02-17 23:30:51 +00:00
interception.h [ASan] NFC: Factor out platform-specific interceptors 2015-03-16 14:22:53 +00:00
interception_linux.cc [sanitizer] Interception macros for sanitizers on FreeBSD; patch by Viktor Kutuzov 2014-02-24 08:37:41 +00:00
interception_linux.h [sanitizer] Interception macros for sanitizers on FreeBSD; patch by Viktor Kutuzov 2014-02-24 08:37:41 +00:00
interception_mac.cc [ASan] Delete the code related to static runtime on OS X. 2013-02-05 15:57:12 +00:00
interception_mac.h Make some pthread_mutex_* and pthread_cond_* interceptors common. 2013-10-16 08:20:31 +00:00
interception_type_test.cc PR16532: work around old GCC bug in interception_type_test.cc 2013-12-05 13:29:46 +00:00
interception_win.cc [windows] Implement GetProcAddress internally to avoid initializing the CRT 2015-08-18 22:38:27 +00:00
interception_win.h [windows] Implement GetProcAddress internally to avoid initializing the CRT 2015-08-18 22:38:27 +00:00