5d71de26cedae3dafc17449fe0182045c0bd20e8 |
|
21-Jul-2014 |
Stephen Hines <srhines@google.com> |
Update compiler-rt for rebase to r212749. Includes a cherry-pick of: r213309 - fixes umodsi3 Change-Id: Ic7367e3586b6af7ef74bee6a8cf437d5f28d975a
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 |
|
29-May-2014 |
Stephen Hines <srhines@google.com> |
Update compiler-rt aosp/master for 3.5 (r209699) rebase. Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e767e350b1a6461bc29cfea28af75f908d7da56e |
|
14-Nov-2013 |
Dmitry Vyukov <dvyukov@google.com> |
asan: disable pthread_setname_np interceptor it does not work anyway and can cause significant slowdown git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194711 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
b527f7de80001569542e3f0ef4c7f4b0cb15cb67 |
|
13-Nov-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Don't call __asan_init() from certain interceptors on Darwin. Fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58994, which hadn't manifested in LLVM because libclang_rt.asan_osx_dynamic.dylib used to depend on the Foundation framework. Without that dependency some interceptors may be called from the system libraries before libSystem_initializer() is called, which lead to assertion failures in sanitizer_mac.cc (_NSGetEnviron() returns NULL). To fix the problem we fall back to the original functions in the common libsanitizer interceptors and the __cxa_atexit() interceptor on Darwin. This patch also prints a better error message in the case _NSGetEnviron() returns NULL. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194573 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
a537ea99d3dcc4b2dc0033aee7ad5cb1b378efc7 |
|
11-Nov-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Warn if interception fails. This includes a clang-format pass over common interceptors. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194372 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
bb6bc9a0ae534ada3c0c2c226462c351c078d761 |
|
11-Nov-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Bypass pthread_attr_getdetachstate interceptor in compiler_rt code. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
dfab31b93e954ee42622a13dd79e9e1092346035 |
|
29-Oct-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Fix build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193635 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
750b4ac400b96153bfe64fc70df3a8d3e2a565a3 |
|
29-Oct-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Fix build warnings. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193634 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
5cf2c460e96e593b1c772f1b02d3a217f4837fdc |
|
29-Oct-2013 |
Dmitry Vyukov <dvyukov@google.com> |
tsan/asan: support pthread_setname_np to set thread names git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e236dbb5e558b174609d2d13e80685d488c129d8 |
|
25-Oct-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Intercept pthread_attr_get*. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193405 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
6866dba92ac842fc513ba339ba849a953ffb7507 |
|
15-Oct-2013 |
Dmitry Vyukov <dvyukov@google.com> |
tsan: move verbosity flag to CommonFlags git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192701 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
8cde99fb9df913aaf7c1715cd134110dd5a15834 |
|
03-Oct-2013 |
Dmitry Vyukov <dvyukov@google.com> |
asan/msan: fix "unused function 'OnExit'" warning git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191904 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
14dd980b384ad859099b499e12f320c4791fb674 |
|
03-Oct-2013 |
Dmitry Vyukov <dvyukov@google.com> |
asan/msan/tsan: move _exit interceptor to common interceptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
6c70a55a52827b2415263a0be2767672a703cd63 |
|
20-Sep-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Remove a complex multiline comment that baffles lint. That comment is repeated in another function below. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191085 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
d4d7040ee026ab04502c42327ed5081f704a8e3c |
|
20-Sep-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Enforce the memmove semantics for both memcpy() and memmove() interceptors on Darwin. Due to bugs in the interposition of resolver functions on 10.7 and 10.8 both memcpy() and memmove() were previously intercepted by INTERCEPTOR(memcpy), which led to false positives and crashes (see http://llvm.org/bugs/show_bug.cgi?id=16362) We choose to use a memmove-like function in both cases. This effectively disables the overlap checks in memcpy(), but the overlaps aren't possible in practice, because memcpy() and memmove() are the same function on Darwin. Once the interposition is fixed in 10.9, we'll need to revisit this issue, see https://code.google.com/p/address-sanitizer/issues/detail?id=226 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191081 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
b99228de65b408b0acd9618b92774fb8add7e482 |
|
05-Sep-2013 |
Reid Kleckner <reid@kleckner.net> |
asan: Add a wcslen interceptor mirroring strlen Tested on Linux, since I can't build the tests on Windows yet. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e18e3f07802c420eb4b2da407e148084b75cecc9 |
|
12-Aug-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Intercept poll/ppoll. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188177 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
67505a8a0cf9621243ed21b67dfa041224c78e4b |
|
16-Jul-2013 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] move strcpy and strncpy to common interceptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
eaca82cf249021afa31dbc970278f2f28ea2a1aa |
|
15-Jul-2013 |
Timur Iskhodzhanov <timurrrr@google.com> |
Fix check_lint warnings in sanitizers' runtime libraries git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186328 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
3fa122e6a8e12db6583793861f6cf776fe1c98a0 |
|
09-Jul-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Support GLOB_ALTDIRFUNC in glob interceptor. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185932 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
12eb79dd701d9d40551759330a9257316601373b |
|
09-Jul-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Intercept realpath and canonicalize_file_name. Handle realpath(path, NULL) form. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185921 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
ae4e6fd0300b13812a02a779619b1a451478cdd1 |
|
09-Jul-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Fix windows build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185917 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c6ac98d7fcc81768b2ef7ddc785c27e3fc1bdef6 |
|
08-Jul-2013 |
Sergey Matveev <earthdok@google.com> |
[lsan] Handle fork() correctly. Update the main thread's os_id on every pthread_create, and before initiating leak checking. This ensures that we have the correct os_id even if we have forked after Init(). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185815 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
b9a928497168e177791f10f5042ff6f5e4e8a881 |
|
01-Jul-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] try to fix Windows build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185345 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
9465cbdbe73590746b57916f46ea1aa4bf3dd13d |
|
01-Jul-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Properly disable strict init-order checking when pthread_create is called git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185342 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c8c312adee610a1f9284f567a35562f6f8dc15e0 |
|
01-Jul-2013 |
Alexey Samsonov <samsonov@google.com> |
Hide mlock/munlock info message under verbosity flag. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185314 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
341b9e63f63a8eacf1b699d4c79edee55241ebe6 |
|
28-Jun-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Intercept ptrace. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185142 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
d530d892b4958a9ae54e57472d5d0a0bae1f6ad8 |
|
21-Jun-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] reimplement strdup() interceptor to get nicer stack traces for memory chunks allocated there git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184546 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
3f9f877480e751a9dd7f5df871121f52f1379a33 |
|
19-Jun-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Delete excessive 'extern "C"' around mlock* interceptors. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184294 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
fdde5a97a71b142297d7b2270c2a7f564a37dbae |
|
10-Jun-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] mark ioctl test as xfailing on darwin. remove redundant semicolons git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
fd55281122b4dedceb4e5a2fedc3946bfba9032b |
|
07-Jun-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] An early return from InitializeAsanInterceptors() on Mac has been considered unobvious. Remove it and replace ASAN_INTERCEPT_FUNC with a no-op if SANITIZER_MAC==1. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183524 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
8d2438a7ebb01201c652f91d1e8043a1f3d03bff |
|
29-May-2013 |
Timur Iskhodzhanov <timurrrr@google.com> |
Replaced 'bool .* = 0;' with '... = false;' git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182868 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
5e97ba38b00eb843a55189bb913b445cbe620894 |
|
29-May-2013 |
Timur Iskhodzhanov <timurrrr@google.com> |
Fix MSVC W3 compiler warnings git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182857 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
9d1525ec52430d0b8ffd6d0893b7f5529105b321 |
|
29-May-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Share TSan accept & accept4 interceptors with other sanitizers. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182835 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
332bf3340435a85d39d6abefbf4d6a145e17da1c |
|
25-Apr-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Add allow_user_segv_handler to let users override SEGV handler installed by ASan git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180255 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
bdd0966deb04068ea94cf416c7fb46516013bd26 |
|
23-Apr-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Disable strict-init-order checker once we have more than one thread, as this mode is thread-hostile git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
881b677c189e65872fd315a75a0e56f077339189 |
|
12-Apr-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Add syscall handlers to ASan and TSan runtimes. ASan checks addressability of syscall arguments. TSan does nothing for now. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179380 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
897a4ae31f5c55255c78854b69b4cd4a4e3c7c39 |
|
09-Apr-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Interceptors for wait*. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179096 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
a27bdf70ca24202dce21cf7c1a387aeaa400d889 |
|
05-Apr-2013 |
Kostya Serebryany <kcc@google.com> |
[sanitizer] found a bug by code inspection: CHECK(a=b) instead of CHECK(a==b). Was puzzled why lint did not catch it. Turns out this check was disabled for asan source. fix all cases and enable the check git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
649a270f5341efe9c57f473dbb78706b0b2ed523 |
|
03-Apr-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Kill the remainders of platform defines in favor of SANITIZER_ defines git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178629 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
7e8434940a1fe7dce531d4c458ccd714da48f609 |
|
28-Mar-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Speed-up initialization-order checking: create and use fast versions of PoisonShadow functions, store copies of __asan_global descriptors in a vector instead of list of pointers. This gives 3x speedup on both benchmarks and real binaries with lots of globals. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178239 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
dfe3f9691d4700981566a4b57e1e482f72783950 |
|
22-Mar-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] fix-up for r177634 on Windows. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177711 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
def1be9b7ef4091ce465c0fbfb26cdb52128ade8 |
|
21-Mar-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Switch ASan to generic ThreadRegistry from sanitizer_common. Delete ASan-specific AsanThreadRegistry. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177634 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
89c1384464848c1ad041becf8b97936fa10de21b |
|
20-Mar-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177501 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e1ba0009d5be18d513ffd29c1b6fccea1a3bffa0 |
|
19-Mar-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] s/ASAN_POSIX/SANITIZER_POSIX/ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177407 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
8bd5e74fa9d37a182088114918380e255e22e493 |
|
28-Feb-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Add the memcmp_strict flag (1 by default) that controls the behavior of accessibility checks in memcmp. 1: memcmp(p1, p2, n) always checks n bytes 0: memcmp checks up to n bytes depending on whether the memory contents differ. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176256 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
1b057b20db71ec6cc2bac460c8b2848f0889d47d |
|
26-Feb-2013 |
Kostya Serebryany <kcc@google.com> |
[asan] fix the output for range accesses (memset, etc); improve the tests; more strict checking in memcmp git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176078 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
72bbfd4f3a442afde281476bc6bd41b3b2152a4e |
|
21-Feb-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Revert the incorrect macro on Linux. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175745 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
a84805f1ccb2b7d4b6c0ba384bd3541fa4eaf808 |
|
21-Feb-2013 |
Kostya Serebryany <kcc@google.com> |
[asan] speedup by more than 2x handling of the small memset/memcpy/etc calls git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175728 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
2673fd8406197c42f16cede6d287f72169298c2e |
|
06-Feb-2013 |
Kostya Serebryany <kcc@google.com> |
[asan] print a short one-line report summary after the full report. Currently, works only if symbolization happens in-process. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174501 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
589dcdaa520de1033a0f6112c9b67ab9eb7931af |
|
05-Feb-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Fix nonsensical reports of partial right OOB. In case of partial right OOB, ASan was reporting X is located 0 bytes to the right of [A, B) where X was actually inside [A, B). With this change, ASan will report B as the error address in such case. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c70fa28caaaec2134f2c2230821fcc0f0d7ac27e |
|
31-Jan-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Split ASan interface header into private and public parts. Add a test that makes sure users can include interface header git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
4f32c0beaa83ffbb84db23d2e6205bee57c39ce1 |
|
18-Jan-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Rename 2 files *.h->*.inc as appropriate. Also add a missing include. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172814 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
541cfb10f5daa17e48eb42365a74233cd551c545 |
|
18-Jan-2013 |
Kostya Serebryany <kcc@google.com> |
[asan] fix two off-by-one errors that seem to affect only PowerPC because only there the stack top may be equal to the address space top. Noted by Andreas Schwab in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55975#c11 . Also make swapcontext interceptor a bit more robust git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172807 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
996c4f2fa53cce8f9d7b517073f38569460de505 |
|
18-Jan-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[sanitizer] Common *scanf interceptors. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172805 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
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_interceptors.cc
|
57db4bae483e7268dd7fc5bc42b0e55564014048 |
|
17-Jan-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] minor changes to swapcontext handling: don't clear shadow memory if context stack is too large git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172727 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
c8033193376c3326478a345c4ae6633d4d2862c6 |
|
17-Jan-2013 |
Kostya Serebryany <kcc@google.com> |
[sanitizer] a bit more unification for interceptors (merge read/pread/pread64 in asan and tsan) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172713 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
eb2809311c94b73c269ccef8d68ae368642e5754 |
|
28-Dec-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] implement more strict checking for memset/etc parameters. Instead of checking the first and the last byte, we check the entire shadow region. This costs ~10 slowdown for the instrumented functions. Motivated by a nasty memset-buffer-overflow-by-140-bytes in chrome which was reported as a use-after-free or not at all git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171198 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
a30c8f9eac981dcf137e84226810b760e35c7be1 |
|
13-Dec-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] add two asan flags: fast_unwind_on_fatal and fast_unwind_on_malloc to allow using the slow CFI-based unwinder git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170117 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
8530e2b953f0b34ecd267a6aba5f155d5c08c5c8 |
|
12-Dec-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] add sanitizer_common/sanitizer_common_interceptors.h with pread/pread64/read interceptors. Use it in asan. Add asan tests for pread/etc. Add FIXME to tsan/msan interceptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169966 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c75d8483e27528349620ccf4e997a72029a7ea17 |
|
10-Dec-2012 |
Alexander Potapenko <glider@google.com> |
[ASan] Typo fix in memcpy() and memmove() interceptors: ASAN_WRITE_RANGE and ASAN_READ_RANGE were swapped. This has been spotted by Anna Zaks (ganna@apple.com) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
716e2f25123bf9b20fbc6b582803a3929b78b96d |
|
07-Dec-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] intercept prctl(PR_SET_NAME) and set the thread name. Output the thread names (if non-empty) in asan reports git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169601 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
da60d62281c1ddb08bdf71a0ac7f5a81fceea7a6 |
|
05-Dec-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] undo the debug printf git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169381 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
72166ca99c2f8898a7a540e60aac3959cbd959bf |
|
05-Dec-2012 |
Kostya Serebryany <kcc@google.com> |
[tsan] get rid of *allocator64* files, moving everything to *allocator* files. This will help with the 32-bit allocator implementation and testing git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169368 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
71578faf4eb8e61aefb3121e1945cc47f07cea0d |
|
26-Oct-2012 |
Alexander Potapenko <glider@google.com> |
In the dynamic runtime on Mac OS, do not call internal_strdup() before __asan_init(). This may result in a crash at startup. Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=123. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166768 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
3e8458ab54c7cbaec45e367b2da909c6f94b291c |
|
24-Oct-2012 |
Alexander Potapenko <glider@google.com> |
[ASan] Use internal_memmove() in both static and dynamic runtime libraries if asan_inited != 0. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
f1673e61768cb08d488a75584b61bfdf24ffdac1 |
|
15-Oct-2012 |
Alexander Potapenko <glider@google.com> |
Implement internal_memmove. Use internal_memmove() and internal_memcpy() in the memcpy() and memmove() wrappers when building the dynamic runtime (OS X only), to work around a bug in resolver functions wrapping. See also http://code.google.com/p/address-sanitizer/issues/detail?id=116 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165939 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
50f2e30497ba2a69ee5721e7235a296d7c13a495 |
|
05-Oct-2012 |
Alexander Potapenko <glider@google.com> |
If !asan_inited, call internal versions of libc functions where available. This is to remove unnecessary #if directives. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165307 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e933c9fc831073560e8731ac5a5e8414549387b5 |
|
04-Oct-2012 |
Alexander Potapenko <glider@google.com> |
Avoid calling __asan_init from memcpy(), memmove(), memset() during libSystem initialization. Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=117. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165227 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
b43d6a8ca10b9af8a903e8726003ae7767f9e823 |
|
12-Sep-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] first effort to start building ASan runtime with -Werror in CMake build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
8d6e3f7d011970e35dadf831964260bcf6a4d8a9 |
|
10-Sep-2012 |
Alexander Potapenko <glider@google.com> |
Allow to call strchr() from __asan_init(). Fixes PR13794. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163493 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
d865fecddccebf898ceed24d096fc58fb29a6e57 |
|
29-Aug-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Relocate the external headers provided by ASan and the common sanitizer library. These headers are intended to be available to user code when built with AddressSanitizer (or one of the other sanitizer's in the future) to interface with the runtime library. As such, they form stable external C interfaces, and the headers shouldn't be located within the implementation. I've pulled them out into what seem like fairly obvious locations and names, but I'm wide open to further bikeshedding of these names and locations. I've updated the code and the build system to cope with the new locations, both CMake and Makefile. Please let me know if this breaks anyone's build. The eventual goal is to install these headers along side the Clang builtin headers when we build the ASan runtime and install it. My current thinking is to locate them at: <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h <prefix>/lib/clang/X.Y/include/sanitizer/... But maybe others have different suggestions? Fixing the style of the #include between these headers at least unblocks experimentation with installing them as they now should work when installed in these locations. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162822 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
beda44f87166f91dbeef3d174d77395653bead4d |
|
17-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Fix lint warnings. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162092 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
0ef531054fc25c11e372cbab1384f10954984219 |
|
17-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Commit the source and CMake changes that will allow to build ASan runtime as a shared library on Mac OS. This will provide an alternative to mach_override. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162091 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
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_interceptors.cc
|
f0c6de3d91ba5cdfbb17a630e823523c7d433160 |
|
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Do not attempt to intercept mlock and friends on Windows. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161939 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
00f1c091441be5c2cacb99e21bd1965a5e418242 |
|
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Use the common interception machinery for mlock/munlock/mlockall/munlockall. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161938 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
487fee7f6f7497906a00d7d2fe2c75e6d5d4feb1 |
|
09-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Move error reporting code away from file with interceptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161570 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
37b3fcd6fdec5740fe51fc1315c5d4d54313de98 |
|
02-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Make strcat() and strncat() more standard-compliant (check for invalid parameters even if zero bytes is copied, more accurate overlap check) Fix the tests that were relying on the incorrect behavior. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161167 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
fd2ae4fc7df0e5acd200f30d87bbc6b96830a989 |
|
01-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] cleanup interceptors code - prefer ASAN_INTERCEPT_FUNCTION_NAME macro to _WIN32, __APPLE__ etc. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161109 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
8648e7734ff02a25706464e9e294bd217622bcae |
|
27-Jul-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] ensure that asan_init is called in str[n]cmp. Bug found by Nick Kralevich (thanks) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160853 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
79d12e87fbcc1b2342d76367b99b83adf9cbf499 |
|
23-Jul-2012 |
Alexander Potapenko <glider@google.com> |
For wild addresses in the shadow or shadow gap areas print an error message instead of crashing on a check. Add AddressSanitizer.MemsetWildAddressTest that makes sure a proper error message is printed. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160620 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
cb8c4dce691097718d5af41b36899b72ef4b1d84 |
|
09-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Use common flags parsing machinery. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
b4fefa713da3dabda1cd83ae4182c71f1683f02c |
|
28-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] cleanup: trailing semicolons, trailing colons in enums git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159338 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c925697df6626bb0ea27ea96539bf0580f8f3d3d |
|
15-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] move all the rest re-implementations of libc functions from ASan runtime to common sanitizer runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158519 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
88207ab15125e2f1e9b3d541b735b2b8aba9b6d9 |
|
15-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Use DEFINE_REAL macro in TSan runtime to call libc implementations of functions. Move strchr to sanitizer_libc. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
327c1c17d9557ed8b197f732c8a070fd6ba821b5 |
|
14-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Move internal_memcmp to common sanitizer libc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158450 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
4fac1482179c6bfd84fa129560caa43f341c7336 |
|
08-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] add internal_memset and internal_strrchr to sanitizer_common/ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158202 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
a1a25c1afe38e59ffb342c24bb5bb10d05679df7 |
|
08-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] allow calls to memmove during rtl initialization git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158201 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c1bdd5adca453f2fae238a4c53ade35ae60b85da |
|
08-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] add interceptor for strncat git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158198 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e0cff0bc20ae51790c8edfbceb817e18ebf5355e |
|
06-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] make tid u32 instead of int git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158074 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e954101f6602ac181a2c3accfbbad0ae51b0bf7c |
|
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer]: Introduce a common internal printf function. For now, also use tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
230c3be6cdd094a187f48e27ba0961dbeee70344 |
|
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Move more functions/constants to sanitizer_common. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
b9a30e0799787a99147e2587ef5ecc8c5f224160 |
|
05-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] remove using namespace __sanitizer lines git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157999 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
1f11d31faa5ed89b74f7d543b1182fe8de198be5 |
|
05-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] add sanitizer_posix.cc. Move more various functions into sanitizer_libc: sscanf, munmap, memchr git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e5f5895bda30f374b0b51412fd4d837fa59aed66 |
|
04-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
Remove file-type tags for .cc files in ASan run-time library git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157927 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c0d78c1de1f2607c874020d27b72cf989c5ce092 |
|
04-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer]: move internal_strcmp to sanitizer_common git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157926 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
3836ff2733d40e1182e301ef7de3eff9469777ae |
|
04-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Move internal_strncpy to sanitizer_libc (and make its behavior conforming to manual) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157922 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
ee3925515e4c7966f3ef489f687aa7e5692806a9 |
|
31-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] more renaming git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
3f4c3875c42078e22c7e5356c5746fd18756d958 |
|
31-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] more renaming git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
619e8bf99d2714c4411fefba22d54c233d93a177 |
|
24-May-2012 |
Meador Inge <meadori@gmail.com> |
Adding back a right parenthesis that was dropped in r157388. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157406 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
580469d7e40e39319cb2d3750edac4bccca18105 |
|
24-May-2012 |
Dmitry Vyukov <dvyukov@google.com> |
asan/tsan: weak interceptors 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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157388 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
034bda5eab7cda14fac0bed3a39de4a3dbce3cff |
|
16-Apr-2012 |
Alexander Potapenko <glider@google.com> |
Partially revert r154390 (http://llvm.org/viewvc/llvm-project?view=rev&revision=154390) Until we work out the solution for http://code.google.com/p/address-sanitizer/issues/detail?id=65 we'd better not allow the clients to override AddressSanitizer's signal handler. The second part of r154390 (removing the sighandler-related tests) is not reverted, because those tests were broken and didn't test anything. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154803 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
73ac687e4bf9914dc7507ed18ef38cf326ef2175 |
|
10-Apr-2012 |
Alexander Potapenko <glider@google.com> |
Change the way ASan interacts with custom signal handlers. From now on we allow the clients to override signal handlers set by ASan, but print a warning in such a case. Remove the tests for signal() and sigaction(), because they made little sense even without this change. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154390 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
4d5f98df886051afeece1698d4bc8f154391c22d |
|
06-Apr-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] move replacements for new/delete to separate file git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154167 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
d01c51d33a5b4c52160c0a6cc18f7739a0a137d3 |
|
04-Apr-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] use correct C-version of strchr on Windows git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
ebb9702cff96192c6a6ea963037929ca7ed60eae |
|
29-Mar-2012 |
Alexander Potapenko <glider@google.com> |
Add internal_memset and replace the uses of REAL(memset) with it where the performance allows. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153641 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
847f932ab0405757946433b81d3b2952b306b0bc |
|
29-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] interceptors for atoi/atol/atoll git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153637 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
8f6a77f3f59ebc5f40f235e51836f468f30b9110 |
|
26-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] add interceptor for strtol git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153444 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
34a3202a2c22816a6da66959e266a2d078ded37b |
|
26-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] use macro to define if we should intercept signal/sigaction git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153430 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
670439cf36c7335add97aa4de65a397cce9ba849 |
|
24-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] revert r153378 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
4f245442bd9b818cb4c1f5c0d3bcc9fdf1e82f10 |
|
24-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] simplify ASAN_INTERCEPT_* definitions git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
81a7a4ab53c94e76c3b131d6f0ed82894640900b |
|
24-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] use ASAN_INTERCEPT_STRNLEN instead of defined(__APPLE__) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153377 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
84ba324b94d22a69acc823e845f9718fd2984e44 |
|
24-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] add interceptor for strtoll git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153376 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
a4898423f0f69d9f7f96631e6384695b0c54d9a9 |
|
21-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[asan] one more try to remove pthread.h from asan_interceptors.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153188 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
56e25249493ff0eeb20d5ab9b2ffe635a7b63ac5 |
|
21-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[asan] add missing declarations from string.h and remove this header git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153187 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
4e7abdcc8ed92a56561ed34f36295c6d01204e5d |
|
21-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[asan] use extern declaraions of libc functions on Win and on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153186 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
73fe35fa6b4c437c9a723eb7bbad4863c7edbe1e |
|
21-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[asan]: remove signal.h system header from interceptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153183 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
beba6448539095b67cab266d09cd7b7d313b8c3d |
|
21-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[asan] merge mac-specific interceptors into one function git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153180 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
5cf832dc0a6566ae4bb8d48b1f41da623d2c2c1a |
|
21-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[asan]: remove asan_mac.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
64ce2db7c838cd95315f7a4428e8a628eaa3e2fc |
|
21-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[asan]: start removing os-specific asan_mac.h - move inclusion of mac system header to asan_mac.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153178 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
2962f26071ebef1d5fec52b5569e5ae7aae45c9b |
|
21-Mar-2012 |
Alexander Potapenko <glider@google.com> |
s/Printf/Report for libc interceptors (need this to debug the potential double interception) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153175 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
6ebea222e306fbe53aab78d7781e5ac19be46b5d |
|
20-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] get rid of setjmp.h header in interceptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153085 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
38dd4ed885e714c376466f6fe0d69f5f22d37014 |
|
20-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan]: remove GetMacosVersion from asan_mac.h header git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153084 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
fdbdab5ff8de4c23b58bb411ea2358a78e2d9b2f |
|
16-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] added an assert in InitializeAsanInterceptors (it should be run just once) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152945 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
9f311bb0919d86ab3df2810dc0b81b70a87677e3 |
|
15-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix unwinding inside libc intercepors (asan issue #46) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152768 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
8599762021935ccfce4db9b054f092af8ef001ab |
|
15-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] performance optimization: make sure the check for poisoned shadow inside inteceptors is inlined git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152767 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
99a40fbdd68f2576c6d5a08fea73f5708c4b7792 |
|
13-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan/Win] Fix wrong memmove,memcpy,memset interceptor definitons git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152622 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
2716a61d085a8fdf13a099822720e320414cc4dc |
|
12-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Add back the support for /MT; intercept statically-linked functions git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152557 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
3fe913558354f76707e2c5584559521399854b79 |
|
27-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Introduce __asan_set_error_report_callback() to allow the client program post-process the error reports. If the callback is set, Report() and Printf() print the reports into a buffer (together with stderr), which is then passed to the client. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151528 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
600972e3427173cc8904d741decd1af0ed5de9fd |
|
24-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Intercept CreateThread on Windows git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151366 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
07bb9f1e3600195119aec1aae1aa48a6ed2f5feb |
|
22-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Intercept functions on Windows - first version git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e4092f6780e107797bc6f2c77219a7256f7b04f3 |
|
22-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: get rid of limits.h, use constants for fixed size integral types instead. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151159 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
b8ef925563f8dde5be837c4b0569082867c5f14c |
|
22-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Remove mentions of pthread*_t from interceptors. Some platforms do not define pthread_t in stdlib.h. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151158 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
8898102a6b1479a9af65857ccbbc1c329a4d9187 |
|
17-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: use custom strtol/atoll functions git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150812 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
da13ba833b046553f50b54538e4828287ddbf5c0 |
|
16-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: revert r150683 - we can't get rid of headers that easily git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150699 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
5c7e5001c6dd6d8add659c9eae41e4c71d6f11ee |
|
16-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: don't include pthread.h and signal.h in interceptors on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150683 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
cf1fba49f0d97a5b781c0bc0f9eb51c9174f57fb |
|
15-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: don't include pthread.h in asan_interceptors.cc on Linux git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150573 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
5362717f2c121384778429b5cf34712925ad4a9b |
|
14-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Define an internal implementation of strchr to make stack OOB tests pass on Windows git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150499 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
4b0c5f240e71be4f375627e57d0f1b89600918a7 |
|
13-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Return type of index() is char*. This is important for Android, where we can't keep system headers from leaking into asan_interceptors.cc. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150374 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
919c24787a655597bdcf367e26c9dd1504e9f463 |
|
13-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Disable signal&sigaction interceptors on Android. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
3e81fe43798c096d1d3565596f0717b9919de4fb |
|
09-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[asan] The first version of the RTL for Windows, reviewed at http://codereview.appspot.com/5647052 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150185 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
f54b1f9b73a6855d77ee270c282bd61407fa73a0 |
|
08-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] unpoison the stack before every noreturn call. Fixes asan issue 37. rt part git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150101 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
5b29018cf422e7711fb760b733c32127397a43fc |
|
08-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: start factoring out interception machinery git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150083 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
09672caefb5694f1981a1712fdefa44840a95e67 |
|
08-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: replace all "real_X" calls with "REAL(X)" git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150073 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
adf2b036127d7e887392d9be5b02069b777ee280 |
|
03-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: Replace __attribute__ with macro (for Win compatibility). Patch by timurrrr@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
f2598fc21bf651d23feab396a7581d48c01c3be5 |
|
02-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: Add macro for definition/declaration of interceptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
573fb4b102dda9d231a8dbd0c01e67e84e9b0874 |
|
01-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Disable wrapping memcpy() on Mac OS Lion, where it actually falls back to memmove. In this case we still need to initialize real_memcpy, so we set it to real_memmove We check for MACOS_VERSION_SNOW_LEOPARD, because currently only Snow Leopard and Lion are supported. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149492 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
3389b8ea81f51a28365a421b2646d594bac490f5 |
|
30-Jan-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: Enforce default visibility for all libc interceptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149247 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
6f0452914ec76c786eb865983793bc03b00fc7b6 |
|
27-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Make compiler-rt/trunk/lib/asan compileable with Visual Studio 2008 on Windows. Patch by Timur Iskhodzhanov (timurrrr@google.com) To test: $ cl /c *.c* in the asan directory. The code fails to link if you omit the "/c" part but that's one of the next steps, as well as a few TODO's I've put into the Windows-specific code. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149130 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c8365231004cb1d956aba4164c89ea1398eadd6b |
|
27-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Make compiler-rt/trunk/lib/asan compileable with g++. Patch by Timur Iskhodzhanov (timurrrr@google.com) The double-extern thing is http://llvm.org/bugs/show_bug.cgi?id=11869 And the #include <string[s].h> are only needed on Mac (see comments in the original code) and also including them might make strchr/index conflict with the g++ system headers (which don't follow the man pages, ouch!) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149129 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
f3810ea150e140f49bd62123885df922fe3c3b81 |
|
23-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] use internal_strcmp before asan_init is done. *may* fix asan issue #30 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
431e51782d62d1257348e41e24da6b544fe70507 |
|
23-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Wrap CFStringCreateCopy to prevent copying constant CF strings. This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=10 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
9cfa194cc62026fc7c6e82f7303eee8ad4d10cf4 |
|
19-Jan-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
EHABI-based stack trace on ARM. The change removes the unused FLAG_fast_unwind, and forces EHABI-based unwind on ARM, and fast (FP-based) unwind everywhere else. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148468 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c655cfa8dc0fdf5b521e565f6cbdbf7981fba1b2 |
|
17-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] workaround for bug http://llvm.org/bugs/show_bug.cgi?id=11763. Do not bark on memcpy(a, a, size). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148318 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
55cdfc6c5af92560bc0623b5a0d70af71511c3c8 |
|
17-Jan-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: create AsanThreadSummary together with AsanThread (in parent thread) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148286 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
4dd8ba8238b1b698953628affe6e5b2edf3b3e3f |
|
16-Jan-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: fix recently introduced lint errors and broken test on Mac. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
3281209790b5e543c79acb2f5008d1df77fb76d9 |
|
13-Jan-2012 |
Alexander Potapenko <glider@google.com> |
This patch adds two methods, __asan_allocate_island and __asan_deallocate_island and switches our interceptors to using them instead of the default vm_allocate-based approach used by mach_override_ptr. To simplify the code, a fixed memory mapping is used for the allocation pool -- note that we can't mmap an arbitrary chunk of memory, because the shadow memory hasn't been mapped yet (for the reasons discussed in http://code.google.com/p/address-sanitizer/issues/detail?id=24, we cannot map the shadow earlier) The patch drops the program startup time from several second to half a second, which speeds up the execution of ASan tests noticeably. Because of the virtual memory size occupied by the programs it's hard to speed up the shutdown time, which would've also helped the tests. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148116 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
d47189c1b63a4de755d7ec071f8d56c8d01cc667 |
|
11-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] remove OS-dependent includes from asan_interceptors.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147916 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
af3441580555ceed092170232cd5f2cc180f19f4 |
|
11-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] get rid of the scary TSD destructor code. Now, we store the leaky AsanThreadSummary in TSD and never remove it from there. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147910 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
2fc648c5d1775f13844d4459347e2b7328411e85 |
|
11-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] hopefully fix the build on MacOS 10.6 (the code did work on 10.7, where I tested it) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147896 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
d55f5f8c413622db4bd28b5cca9bfeb4d61564e0 |
|
10-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] move OS-dependent code away from asan_lock.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147878 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
35dd9d8f54f15f16be6c224e303bbf75d667f248 |
|
09-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] temporary reinstate string.h/strings.h. Removal of those caused a Mac build failulre which I failed to observe before the commit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147810 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
20688eb9b1099963170fe8c440cb910d9b2df40b |
|
09-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] don't include string.h and strings.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147809 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
a4ccf878e464d29a4a18756c5c4f626dc530a12e |
|
09-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] don't use strstr/strncat from libc, use our own versions instead git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147807 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
73248e304bfa86596c667b30feda0bf3c61f6ac9 |
|
09-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix mac build once more git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147796 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
d66a8d8f56c66c9749b6d75c61870a121d4d9307 |
|
09-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan]: fix typo from previous commit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147793 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
547652c45fd7f7497dd214ec8ec6b6ee0f80359d |
|
09-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan]: fix mac build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147792 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
4803ab90ead451b55a5833f0fd38b10fd1fc83eb |
|
09-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] refactoring: move all interceptors to a single file git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
de496f451bce322b6cde100456591f1f50ab3477 |
|
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] use custom libc-free getenv; a bit of refactoring around mmap calls git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147326 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c5e72a3b7c60f1b2d9d9be3a07d397d5b5f872be |
|
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] better message for parameter overlap bugs git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
0985ca240812ac5519168a6aecbccf4c513ae243 |
|
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] interceptor for strcat. Patch by samsonov@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147316 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
52fb238ccc45781e4e1d097ae1ee748c898b5825 |
|
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] interceptor for memcmp. Patch by samsonov@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147315 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
af0f01d77c2a495f023ffbf6cce85b33bbd2306d |
|
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] interceptors for strcasecmp and strncasecmp. patch by samsonov@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147304 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
c16201337a4bb974093ff75aa45682739a331d05 |
|
13-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] canonicalise the output for double-free and wrong-free. fixes asan issue 18 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146501 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
e130191a254064bfd1c8d373afdacf6d52979713 |
|
05-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] cleanup memset/memmove/memcpy interceptors and enable them on Mac. Patch by samsonov@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145826 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
2d8b3bdb112ebb8ed3f15ee41d4cebcd683b41b0 |
|
02-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] minimize the use of STL. One bit is still left. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145691 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|
1e172b4bdec57329bf904f063a29f99cddf2d85f |
|
30-Nov-2011 |
Kostya Serebryany <kcc@google.com> |
AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_interceptors.cc
|