46efcb09dc16b91cb805abea52f3ff6081a63751 |
|
24-May-2013 |
Alexey Samsonov <samsonov@google.com> |
Disable init-order checking before destructors are run. We don't want to report initialization-order bugs when a destructor of a global variable accesses dynamically initialized global from another (not necessarily initialized) module. We do this by intercepting __cxa_atexit and registrering our own callback that unpoisons shadow for all dynamically initialized global variables. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182637 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
be52366ff2500f11133fd6089f349e93bd5f4822 |
|
26-Mar-2013 |
Dmitry Vyukov <dvyukov@google.com> |
asan/tsan: move strcasecmp() interceptor to sanitizer_common git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178010 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
24e13723f8477d8c42ab8b2a7f4f69fc089842f1 |
|
19-Mar-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Replace more platform checks with SANITIZER_ constants. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
ff5d1fcdd74036fa15d96fafd487397ebf5f202e |
|
15-Mar-2013 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Don't intercept frexpf and frexpl on Windows. Add frexp declaration to asan_intercepted_functions.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177155 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
33934fff43c5813394fe21e68b8d82b672013465 |
|
22-Feb-2013 |
Kostya Serebryany <kcc@google.com> |
[asan] move the .preinit_array hack into a separate file (added used attribute) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175871 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
ed3cb6b5f15ab375bbe6a90ccbe8d69bb1f36fe0 |
|
21-Feb-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Declare CreateThread as extern "C" to fix the Windows build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175760 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
c4f88e4e6732f3fec8976e2b56e453d20b047845 |
|
21-Feb-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Put several function prototypes back under #ifdef _WIN32 to fix the Windows build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175743 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
50a002ecad3f0a10c136496e5b6289bd3c71590e |
|
21-Feb-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Refactoring: nuke the redundant function declarations in asan_intercepted_functions.h that had been used on OS X only. The INTERCEPTOR() macro on OS X is now responsible for declaring the wrapped function, the wrapper and the pair of pointers to them in __DATA,__interposition section. Thus adding an interceptor requires editing a single file now. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
7c2a3bbabc7d3bcc66ad7a076bed9a4b86a3626d |
|
20-Feb-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Delete asan/dynamic dir and temporarily move the interposers declarations to asan_intercepted_functions.h Now that we have only one dependency on asan_intercepted_functions.h, we can unite that code with the interceptors declarations in asan_interceptors.cc and get rid of asan_intercepted_functions.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175631 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
9358c58d0aaf1b20f17362af354d4c3c1309276a |
|
19-Feb-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Add interceptors for localtime and friends. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175499 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
2cf585e94866c97528b0743b1e4c01f779fa500f |
|
12-Feb-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Add new __isoc99_*scanf to ASan intercepted functions list. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174965 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
427a89947a52bbaaa6adfaae7aa8e44ec588f43d |
|
06-Feb-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] fix the interceptor for siglongjmp. As we're using dylib interposition, we must intercept both siglongjmp and longjmp on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174510 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
69563986ca570ce750111a82264d51ddbf4107ba |
|
05-Feb-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Delete the code related to static runtime on OS X. Nuke lib/interception/mach_override. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
327c60a02a944fc9e3603d2cc6822af9517135d0 |
|
24-Jan-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] fix compilation on Mac by adding a missing pwrite parameter. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173333 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
eba4803ab538007a63d149faf92afc00f73c5128 |
|
22-Jan-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Use dylib interposition to hook memory allocation in the dynamic runtime. This CL drastically simplifies the way we're hooking the memory allocation routines in ASan on Mac by using dylib interposition to replace the main malloc_zone_* functions. This allows us to avoid replacing the default CFAllocator and drop the CF dependency at all. Committing this patch will result in the static runtime being broken. A follow-up CL will switch ASan to use the dynamic runtime library. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173134 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
ee485d42c43635f874e3197f636280a6b0f8c545 |
|
21-Jan-2013 |
Alexey Samsonov <samsonov@google.com> |
ASan: build unit tests with -fsanitize-address-zero-base-shadow on Linux and Android git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173021 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
6935071be08d83963a0eaf2377f3fffb8b56f328 |
|
21-Jan-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Move *scanf declarations out of mac-only section. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173020 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
82a9080eaff95d69b270cd863e9df63e3b4e59ad |
|
18-Jan-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] lint git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172817 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
fc4fcf5c6f964f2da6e9875a820eac90399d1deb |
|
18-Jan-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Fix compilation on Mac. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172810 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
bee7415a86d9437659d09f034c346794bf15c2ab |
|
18-Jan-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Fix Mac build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172809 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
c20b321d49f0eff60f1394d56e623d8ca94f24d7 |
|
18-Jan-2013 |
Kostya Serebryany <kcc@google.com> |
[sanitizer] reapply r172719, r172721-172723, r172725, and also fix the warning on Mac. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
29b37ea8907bc99bf86fab89bf8dc93a520ebac4 |
|
17-Jan-2013 |
Jakob Stoklund Olesen <stoklund@2pi.dk> |
Revert r172719, r172721-172723, and r172725. The r172719 patch broke the build on Mac, the others depended on it. compiler-rt/lib/asan/asan_interceptors.cc:78:13: error: unused function 'SetThreadName' [-Werror,-Wunused-function] static void SetThreadName(const char *name) { Orignal headlines: [asan] attempting to fix the Mac build [asan] restructure read/pread/pread64 tests [sanitizer] move write/pwrite/pwrite64 interceptors to common [msan] start using common interceptors in msan [tsan] move prctl interceptor from asan to common_interceptors thus enabling it for tsan too git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172763 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
9289ff13180a35241d3326be3a8e1edf6f45dc9b |
|
17-Jan-2013 |
Kostya Serebryany <kcc@google.com> |
[asan] attempting to fix the Mac build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172725 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
0223e7dece2c215ed07e2100e1739fa5bf4d8210 |
|
17-Jan-2013 |
Kostya Serebryany <kcc@google.com> |
[tsan] move prctl interceptor from asan to common_interceptors thus enabling it for tsan too git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172719 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
74737d595c4e3638b980bd88b0492247ae4318fa |
|
13-Dec-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Add new header - sanitizer_platform_interceptors.h, which should define whether or not given function should be intercepted on a given platform. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170115 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
8ffd87791a5376d44edfa288cbf469702edbfa22 |
|
13-Dec-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] one more macro for 'read' interception git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170114 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
c333dffb81f1d85483d657c254c17f636ab192c5 |
|
13-Dec-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] more macro for conditional interception of pread functions git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170112 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
6afa1b0406f5cce7256d4f8717bfe394a16999b5 |
|
13-Dec-2012 |
Kostya Serebryany <kcc@google.com> |
[sanitizer] replace size_t with SIZE_T in interceptors (same for ssize_t, off_t and off64_t). This is done to avoid confusion and to make the code work with compilers that define size_t w/o any includes (MSVC) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170103 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
b1cc4e448f35515e737ac4969aaa04f3fa3af10a |
|
13-Dec-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix the Android build (pread64 interceptor again) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170098 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
214621f7663896987dc509561c762460226c68c2 |
|
12-Dec-2012 |
Kostya Serebryany <kcc@google.com> |
[sanitizer] add OnMap/OnUmap callbacks to the allocator interface git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169985 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
1f5e23e3204961456d4c7a9b45060597d4ff69af |
|
12-Dec-2012 |
Alexander Potapenko <glider@google.com> |
[ASan] fix compilation on Mac. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169969 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
1877e086eae86c38382c3d3fd2eae03a0d90990a |
|
07-Dec-2012 |
Alexey Samsonov <samsonov@google.com> |
ASan: intercept prctl on Linux only git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169616 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
2fbf620369f5f1b7200f7ebfe5938e75cb6fbeb2 |
|
04-Dec-2012 |
Alexander Potapenko <glider@google.com> |
[ASan] Do not build the interceptors that use ObjC blocks if the compiler does not support blocks. Need to define MISSING_BLOCKS_SUPPORT in this case at buildtime. Patch by Jack Howarth <howarth@bromo.med.uc.edu> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169206 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
f3950c6d6acf53fe60735f6d38715c1ea6df814b |
|
23-Nov-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] intercept swapcontext on Linux only git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168509 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
0870028410087e67a0049c76cb7c64f02c260d24 |
|
23-Nov-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Add interceptor for swapcontext to fight with false positives in some of its use cases. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
78c7f57e2dd5240b0c2c8bfefd8a776c517f1e22 |
|
06-Sep-2012 |
Alexander Potapenko <glider@google.com> |
Fix two compiler warnings: must use at least one argument for "..." in a variadic macros, signed vs. unsigned comparison. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163314 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
af198e421ea198c5f9fa8cd691aa9a209b3d96a0 |
|
23-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Re-implement the wrappers for libdispatch functions using blocks where appropriate (kudos to Anna Zaks for a good example). This simplifies the code much and lets us not implement internal parts of libdispatch. All ASan tests from t32 and t64 should pass with the dylib runtime now. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162439 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
2483ce3e635515d907c0cd8c97db315142fb28db |
|
20-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Dynamic interceptors for dispatch_async and dispatch_after. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162202 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
5ffb40c5532932d4a20738222a43286cf153de52 |
|
20-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Fix a leftover #if defined(DYNAMIC_MAC_WRAPPERS). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162197 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
23ff97daaa73e858aa2d35618276886c2a8f1e95 |
|
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Remove the extra semicolon reported by the buildbot. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161954 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|
05bf9a51dfeac0f84f6dbc2dacf987249c0fc612 |
|
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Introduce asan_intercepted_functions.h which contains the declarations wrapped functions and their wrappers. Those declarations are going to be shared between asan_interceptors.cc and the dynamic runtime library on Mac OS. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161952 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_intercepted_functions.h
|