summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception/interception.h
Commit message (Collapse)AuthorAgeFilesLines
* [ASan] NFC: Factor out platform-specific interceptorsTimur Iskhodzhanov2015-03-161-1/+0
| | | | | | Reviewed at http://reviews.llvm.org/D8321 llvm-svn: 232377
* [ASan/Win] Land the trivial bits of -MD RTL support (PR20214)Timur Iskhodzhanov2014-08-221-9/+3
| | | | llvm-svn: 216265
* Make sanitizers' interceptors non-weak on FreeBSDViktor Kutuzov2014-07-101-0/+10
| | | | | | Differential Revision: http://reviews.llvm.org/D4418 llvm-svn: 212693
* [ASan/Win] Use the new function interception approach to handle function ↵Timur Iskhodzhanov2014-05-221-3/+3
| | | | | | | | wrappers too; wrap strlen() in DLLs Reviewed at http://reviews.llvm.org/D3871 llvm-svn: 209427
* [sanitizer] Interception macros for sanitizers on FreeBSD; patch by Viktor ↵Kostya Serebryany2014-02-241-4/+5
| | | | | | Kutuzov llvm-svn: 202009
* Make some pthread_mutex_* and pthread_cond_* interceptors common.Alexey Samsonov2013-10-161-0/+6
| | | | | | | | | | | | Reviewers: eugenis, dvyukov Reviewed By: dvyukov CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1937 llvm-svn: 192774
* [ASan] Remove the explicit function prototypes for intercepted functions on ↵Timur Iskhodzhanov2013-09-101-2/+5
| | | | | | Windows llvm-svn: 190411
* [libsanitizer] Introduce INTERCEPTOR_WITH_SUFFIX which is to be used for ↵Alexander Potapenko2013-05-201-3/+22
| | | | | | | | appending the __DARWIN_ALIAS() version suffixes to function names on Darwin. This should fix asan/lit_tests/wait.cc under ASan. llvm-svn: 182259
* add Linux syscall wrappers and ThreadLister to sanitizer_commonKostya Serebryany2013-02-271-14/+6
| | | | | | | | ThreadLister is a Linux-specific class for obtaining the thread IDs of a process from procfs (/proc/<pid>/task/). It will be used by leak checking code. Also add several syscall wrappers which will be required by the same code that uses ThreadLister, but are not used in ThreadLister itself. Patch by Sergey Matveev llvm-svn: 176179
* [ASan] Refactoring: nuke the redundant function declarations in ↵Alexander Potapenko2013-02-211-5/+46
| | | | | | | | | | 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. llvm-svn: 175740
* [asan] fix x32 build (H.J. Lu)Kostya Serebryany2013-02-141-2/+2
| | | | llvm-svn: 175140
* [sanitizer] OFF_T on Mac is u64.Evgeniy Stepanov2013-02-071-0/+5
| | | | llvm-svn: 174600
* [sanitizer] Fix wrong size of OFF_T on 32-bit platforms.Evgeniy Stepanov2013-02-071-1/+4
| | | | | | | This broke pread/pwrite interceptors when building without -D_FILE_OFFSET_BITS=64, and always on Android. llvm-svn: 174593
* [ASan] Delete the code related to static runtime on OS X.Alexander Potapenko2013-02-051-30/+10
| | | | | | Nuke lib/interception/mach_override. llvm-svn: 174383
* [Sanitizer] include sanitizer_common headers when building interception libraryAlexey Samsonov2013-01-301-1/+1
| | | | llvm-svn: 173930
* [sanitizer] Further split private and public sanitizer headers.Evgeniy Stepanov2013-01-301-1/+1
| | | | | | And make msan_interface.h C-compatible. llvm-svn: 173928
* [sanitizer] Common *scanf interceptors.Evgeniy Stepanov2013-01-181-0/+2
| | | | llvm-svn: 172805
* [sanitizer] replace size_t with SIZE_T in interceptors (same for ssize_t, ↵Kostya Serebryany2012-12-131-0/+9
| | | | | | 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) llvm-svn: 170103
* [ASan] Apply some ASan-relevant pieces of patch by Ruben Van Boxem. In the ↵Alexey Samsonov2012-09-241-0/+4
| | | | | | same time, remove ASan from CMake build on Windows after conversation with Timur. We don't want to support building ASan on Windows until it is in a working state. llvm-svn: 164486
* [ASan] fix interception macro for Android buildAlexey Samsonov2012-09-121-1/+1
| | | | llvm-svn: 163692
* [Sanitizer] get rid of empty DEFAULT_CONVENTION in interception lib to ↵Alexey Samsonov2012-09-111-27/+23
| | | | | | remove empty macro arguments llvm-svn: 163622
* Commit the source and CMake changes that will allow to build ASan runtimeAlexander Potapenko2012-08-171-14/+34
| | | | | | | as a shared library on Mac OS. This will provide an alternative to mach_override. llvm-svn: 162091
* [Sanitizer] Workaround for a compiler warning - ISO C++ forbids casting ↵Alexey Samsonov2012-08-021-0/+9
| | | | | | pointer-to-function to pointer-to-object, so we use cast via integral type llvm-svn: 161168
* [ASan] cleanup: trailing semicolons, trailing colons in enumsAlexey Samsonov2012-06-281-5/+5
| | | | llvm-svn: 159338
* [Sanitizer] fight more semicolons in macro definitions (to please mac cmake ↵Alexey Samsonov2012-06-281-4/+4
| | | | | | build) llvm-svn: 159337
* Lots of trivial changes to remove extraneous semicolons throughout ASan.Chandler Carruth2012-06-251-5/+5
| | | | llvm-svn: 159128
* asan/tsan: rename interceptors from __xsan_xxx to __interceptor_xxxDmitry Vyukov2012-05-281-5/+5
| | | | llvm-svn: 157569
* asan/tsan: weak interceptorsDmitry Vyukov2012-05-241-7/+18
| | | | | | | | | The idea isthat asan/tsan can survive if user intercepts the same functions. At the same time user has an ability to call back into asan/tsan runtime. See the following tests for examples: asan/output_tests/interception_failure_test-linux.cc asan/output_tests/interception_test-linux.cc asan/output_tests/interception_malloc_test-linux.cc llvm-svn: 157388
* [asan] move lib/asan/interception to lib/interception so that other tools ↵Kostya Serebryany2012-05-151-0/+157
(e.g. tsan) can use it llvm-svn: 156816
OpenPOWER on IntegriCloud