1f922a5259510f70a12576e7a61eaa0033a02b16 |
11-Sep-2012 |
Stephen Hines <srhines@google.com> |
Merge up through LLVM r163557. Updated Android.mk source file for asan and fixed up test setup (thanks to Evgeniy for the starter patch). Change-Id: I4dcf13130505f4c1e2eed191a3b403ccab5e5e26
ndroid.mk
san_android_stub.cc
|
56937189e87949cca1964a399c8db3fd2ef0fa2d |
11-Sep-2012 |
Stephen Hines <srhines@google.com> |
Merge branch 'upstream' into merge-2012_09_10 Conflicts: lib/sanitizer_common/sanitizer_allocator.cc Change-Id: Ic93702aa92d9d4d582b25b33dfc14f6176d6b8a8
|
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
san_interceptors.cc
|
0d02f1f1a076bd5931309f2cfc0422b477a4e7a2 |
07-Sep-2012 |
Daniel Dunbar <daniel@zuster.org> |
[asan] Use a relative include path instead of requiring build system involvement. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163414 91177308-0d34-0410-b5e6-96231b3b80d8
ynamic/asan_interceptors_dynamic.cc
|
38b7c1bd5dcbd669759a31b6c9fb6e8683432896 |
07-Sep-2012 |
Daniel Dunbar <daniel@zuster.org> |
build: Teach Makefile build system about asan/dynamic subdir. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163413 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.mk
ynamic/Makefile.mk
|
f4e21fb6369497a271373ef4530e33a40e607542 |
07-Sep-2012 |
Daniel Dunbar <daniel@zuster.org> |
[asan] Suppress some bogus -Winvalid-noreturn diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163411 91177308-0d34-0410-b5e6-96231b3b80d8
san_report.cc
|
8e23d275ec871c16b71f3a98cc475f0db8cb3863 |
07-Sep-2012 |
Alexander Potapenko <glider@google.com> |
Remove the infinite recursion check for now, as we don't have __thread on Mac, and TSD is an overkill. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163393 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
5aabcb547a983653a754258d63e27e3790c564d3 |
07-Sep-2012 |
Alexander Potapenko <glider@google.com> |
Two minor changes: -- exit from infinite recursion in CHECK() -- print a verbose message if mapping of the shadow memory has failed. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163391 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
7315c26122cbdfee82f4dbadaedd5c1b85755503 |
07-Sep-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Raise quarantine size a bit with ASAN_LOW_MEMORY. Our tests expect that a 16M block will fit in the quarantine. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163384 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
d79635960420cc24f2533a12ee221f51d8a98a81 |
07-Sep-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] hack initialization-bug test so that it stably passes on both Linux and Mac: make the bug appear independent of the translation unit order git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163381 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/Helpers/initialization-bug-extra2.cc
it_tests/initialization-bug.cc
|
ef698124b4d1875bb793a4f1d885a3d2f1f538e1 |
07-Sep-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] add Linux-specific test for initialization order that checks that we find a bug independently of translation units order git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163379 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/Linux/initialization-bug-any-order.cc
|
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
san_intercepted_functions.h
san_rtl.cc
|
e0e9eea99d7a81a15c4bb15ff2e5ebd92b50817b |
06-Sep-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Use __ANDROID__ guard in asan_test. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163313 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
e9f5785228eb19e64719a1a3e258d12639479c8c |
06-Sep-2012 |
Alexander Potapenko <glider@google.com> |
Use the return value of dladdr() to avoid Clang warning. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163311 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
|
6d924facc5c979a0d25f484cffcdb51c766ed551 |
06-Sep-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] increase max stack size to 256 (+test) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163308 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
san_thread.cc
it_tests/deep_stack_uaf.cc
|
ba534e7fc561c4a61acbb1bbc03e0a02996c8e94 |
06-Sep-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] actually remove old makefile git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163300 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.disabled
|
5b1f0202cefdab3970b4d5372777d586ffa49dd3 |
06-Sep-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Nuke output_tests/ in favor of lit_tests/. Stop using Makefile.old. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163294 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.disabled
akefile.old
EADME.txt
utput_tests/clone_test.cc
utput_tests/deep_tail_call.cc
utput_tests/default_options.cc
utput_tests/dlclose-test-so.cc
utput_tests/dlclose-test.cc
utput_tests/global-overflow.cc
utput_tests/heap-overflow.cc
utput_tests/interception_failure_test-linux.cc
utput_tests/interception_malloc_test-linux.cc
utput_tests/interception_test-linux.cc
utput_tests/large_func_test.cc
utput_tests/memcmp_test.cc
utput_tests/null_deref.cc
utput_tests/shared-lib-test-so.cc
utput_tests/shared-lib-test.cc
utput_tests/stack-overflow.cc
utput_tests/stack-use-after-return.cc.disabled
utput_tests/strncpy-overflow.cc
utput_tests/test_output.sh
utput_tests/use-after-free.c
utput_tests/use-after-free.cc
|
ff392a44a9af183de5adc8893ddd11ac77625d56 |
06-Sep-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] increase the maximal size of malloc/free stack git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163291 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
4a78b1e4685f34aa8a53287c51e4215880e554e0 |
05-Sep-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Hack ASan lit config to allow running lit on tests manually git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163209 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
it_tests/CMakeLists.txt
it_tests/lit.cfg
|
5f799c78e5b1bd8105bab77a0935f27ee808dc97 |
05-Sep-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] added tests for asan-initialization-order, patch by Reid Watson git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163207 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/Helpers/blacklist-extra.cc
it_tests/Helpers/initialization-bug-extra.cc
it_tests/Helpers/initialization-nobug-extra.cc
it_tests/Helpers/lit.local.cfg
it_tests/blacklist.cc
it_tests/initialization-bug.cc
it_tests/initialization-nobug.cc
|
0f7d4a4ad69ad20053d8b78c611853e778bd465a |
05-Sep-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] hoist more compile flags to SANITIZER_COMMON_CFLAGS var and add the rest of flags/defs from old Makefile to CMake git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163204 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
ests/CMakeLists.txt
|
656e4eef01b935e7d356e697e0f3ef4c99be2fbf |
05-Sep-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Add CMake support for building ASan benchmarks git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163201 91177308-0d34-0410-b5e6-96231b3b80d8
ests/CMakeLists.txt
|
71b42c9740e6f73da607aaa539affb5c4807231c |
05-Sep-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Add print_full_thread_history runtime option (on by default) that prints all full thread creation paths for threads involved in ASan error report git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163200 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_flags.h
san_report.cc
san_report.h
san_rtl.cc
san_thread.h
it_tests/deep_thread_stack.cc
|
184fdd7837ca5b4f2c8cfd2ba1fb1e32f3a5ffbe |
31-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Remove lint checkers from our old makefiles in favor of buildbot git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162981 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
EADME.txt
|
5092682c3a6902e460a6e439cf48b3dc7d48dc65 |
30-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
Whitespace/lint git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162909 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_allocator.h
san_thread.h
ests/asan_test_utils.h
|
62825675e6b4f3d8459f745fe68ae30f236f82a5 |
29-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] fix flakiness of Linux-specific clone_test: waitpid should better be provided with __WCLONE option, otherwise it didn't wait for the subprocess, returned -1, and we went crushing the subprocess stack git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162842 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/Linux/clone_test.cc
|
2122f705fcad0316b5ff9d5e1e9260fd18191e1f |
29-Aug-2012 |
Alexander Potapenko <glider@google.com> |
For invalid pointers passed to free_common check whether they are actually skewed to hold an additional CFAllocatorRef. If so, fix the pointer and pass it to asan_free. See http://code.google.com/p/address-sanitizer/issues/detail?id=70 for more background. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162839 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_mac.cc
|
a60844da5bbaaa60e546f3e2bd14a1763965ef65 |
29-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix asan's Makefile.old -- our build bot still uses it (hopefully, will soon migrate to cmake completely) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162831 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
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
san_allocator.cc
san_flags.h
san_globals.cc
san_interceptors.cc
san_interface.h
san_poisoning.cc
san_report.h
san_rtl.cc
san_stack.cc
san_stats.cc
it_tests/interface_symbols.c
utput_tests/test_output.sh
ests/asan_noinst_test.cc
|
60ab090deed8213613643729a7921ef0915ac704 |
29-Aug-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Some flag cleanup for the sanitizer runtimes. This hoists most of the CFLAGS into a common variable. It also adds detection for -Wno-c99-extensions and uses it to silence a pile of warnings. Finally, it switches to the proper flag -rdynamic. With this, the cmake build is warning free on my bootstrap Linux build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162809 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
ests/CMakeLists.txt
|
80acccf4647c3482c3e3e6ae21e757ba580a5956 |
28-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] one more fix for windows build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162762 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
69f2174b3bdee7fe6c6911778147fc7e35d57693 |
28-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix Windows build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162758 91177308-0d34-0410-b5e6-96231b3b80d8
san_win.cc
|
1b5ea8fbbef73f5d9b41dbb26a21b9a0f4d1445e |
28-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] actually move StackTrace to sanitizer_common git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162757 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_stack.cc
san_stack.h
|
cc347222d55967fdb775429a8a0a3a5d795b8b50 |
28-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] even more refactoring to move StackTrace to sanitizer_common git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162754 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_report.cc
san_stack.cc
san_stack.h
san_thread.h
|
2b939c3abc8b7713ef28000bd768ca6d77445f45 |
28-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] more refactoring to move StackTrace to sanitizer_common git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162752 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_mac.cc
san_stack.cc
san_stack.h
|
8757a68c78f76fca32d3f2256fa70a7b550aa9e1 |
28-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] CMake build: share more compile flags between instrumented and non-instrumented tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162750 91177308-0d34-0410-b5e6-96231b3b80d8
ests/CMakeLists.txt
|
c3390df6670cb166119b961eb27a033fb9073496 |
28-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] some renaming before we move StackTrace into sanitizer_common git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162747 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_allocator.h
san_internal.h
san_linux.cc
san_mac.cc
san_report.cc
san_report.h
san_stack.cc
san_stack.h
san_thread.cc
san_thread.h
san_win.cc
ests/asan_noinst_test.cc
|
283c296b64bc55deec9698260b3427a9b050a925 |
28-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] get rid of AsanPrintf in favor of Printf from sanitizer_common git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162746 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
san_allocator.cc
san_internal.h
san_malloc_mac.cc
san_printf.cc
san_report.cc
san_rtl.cc
san_stack.cc
san_stats.cc
san_thread.h
|
2c29212c42d457ade0bbd1d01de92195dd9ce925 |
28-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] improve SetErrorReportCallbackTest to actually catch missing functionality in __asan_set_error_report_callback git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162745 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
ests/asan_noinst_test.cc
|
b10027729a3b809469f6b6ad40407ca453d6f54a |
27-Aug-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
CMake build rules for ASan/Android runtime. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162675 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
947fbd1a073fcd38988c1ec131452e99bb0313f8 |
27-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Use low-level allocator in flag parsing to avoid calling malloc() before ASan/TSan initialization is done git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162673 91177308-0d34-0410-b5e6-96231b3b80d8
san_globals.cc
san_rtl.cc
san_thread.cc
|
e1f5dac9296df08ff83ae5fca51ce4da995b55cf |
27-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Rename ProcessMaps to MemoryMappingLayout and fix Windows build by providing stub implementation git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162671 91177308-0d34-0410-b5e6-96231b3b80d8
san_stack.cc
|
1069b9a6845a95e3482f9ee68d8e5b3e970fa11c |
27-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] add missing build dependency on sanitizer_common headers git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162670 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.mk
|
3891ce634380845d337cd865e559f4abbdc8ebdb |
27-Aug-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
A few tweaks for building ASanRT against Android NDK. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162666 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_malloc_linux.cc
san_mapping.h
san_new_delete.cc
san_thread_registry.cc
|
70e177e29c6f9ac987b65a79f6b4f3ebdabc75cc |
27-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] move low-level (mmap-based) allocator to sanitizer_common git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162663 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_rtl.cc
san_thread_registry.cc
|
f5b925fde9c855eab4fbc71354e79cc777ed19ec |
24-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Revert the erroneous changes made to Makefile.old in r162547 Remove a spare newline from asan_rtl.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162548 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_rtl.cc
|
eb8c46e419f4c6f01d1b1a0d1b96cc51a61ecbc3 |
24-Aug-2012 |
Alexander Potapenko <glider@google.com> |
If the program is linked to a dynamic ASan runtime which is not present in DYLD_INSERT_LIBRARIES (which, in turn, is required for our interceptors to take effect), re-exec the program with DYLD_INSERT_LIBRARIES set. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162547 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_flags.h
san_interceptors.h
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
san_win.cc
|
1e2525d0ec9ac64e583b57316ea30cecce591fb1 |
24-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Add add_clang_runtime_shared_library() CMake function and use it to put the shared ASan runtime in the appropriate place. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162546 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
6490f0d0b9a761083016aa469c9cce72b341b0a4 |
23-Aug-2012 |
Stephen Hines <srhines@google.com> |
Fix up compiler-rt for upstream merge to r162279. Some new files to compile + fixing an unimplemented function that now returns a value. Change-Id: I088a9830a9a1e0702442a5ca78716465c300e7af
ndroid.mk
|
58948471cbd30eca1336a27687093f08b7f44bdd |
24-Aug-2012 |
Stephen Hines <srhines@google.com> |
Merge branch 'upstream' into merge_2
|
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
san_intercepted_functions.h
san_mac.cc
ynamic/asan_interceptors_dynamic.cc
|
9c6e5303fa025a73a09cee0766ae403909b1bb8b |
23-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Switch the symbolization strategy that would be used by sanitizer tools family: as compiling in-process symbolizer into runtime involves certain difficulties, we may instead launch an external symbolizer program (fork + execl) in a subprocess and communicate with it via pipe. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162437 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
06a7153ecdd8414a7e2116eb5841c89f1855a267 |
22-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] use write instead of puts in malloc hooks test for ASan, as puts calls malloc on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162359 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/malloc_hook.cc
|
c93d3e2bdfb1ad9cce26a6e8d66764ed97a6d6b4 |
22-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162358 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
san_internal.h
san_rtl.cc
san_stack.cc
san_win.cc
it_tests/interface_symbols.c
it_tests/symbolize_callback.cc
utput_tests/test_output.sh
|
b21de9e71522a7f9ed31fd92aafe6936873a971c |
22-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] make ASan malloc/free hooks weak interface functions, overridable by user. Now the user can control malloc/free hooks without recompiling ASan runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162355 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_interface.h
san_rtl.cc
it_tests/malloc_hook.cc
|
128892cb26ee50b0fa2171198c7a919540dcd4e7 |
21-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix mac build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162279 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
3945c58f9db42671b1a3b865fde5008f09a3a40e |
21-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] run-time part of the initialization order checker. Patch by Reid Watson with some bits from kcc. The sub-pass is off by default for now. On simple tests it works fine. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162278 91177308-0d34-0410-b5e6-96231b3b80d8
san_flags.h
san_globals.cc
san_interface.h
san_internal.h
san_report.cc
san_rtl.cc
|
2bf265b3faf8be1710e9a0441fe9344e105e991c |
21-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] update asan-rt to match the interface change in LLVm (r162268) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162269 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
|
0ffc227f91b068c78908f735a4846f92e339a337 |
21-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix lint git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162258 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
|
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
san_intercepted_functions.h
san_mac.cc
ynamic/asan_interceptors_dynamic.cc
|
b09dd34786713a150fed5c5ab1529f01de0e2bc0 |
20-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Minor refactoring: reduce code duplication by introducing a macro for dispatch_sync_f, dispatch_async_f, dispatch_barrier_async_f bodies. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162199 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
|
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
san_intercepted_functions.h
|
9ee7cf199bbeb71788088d880d453b8ac9d2fca0 |
17-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Intercept siglongjmp and _longjmp under "#if ASAN_INTERCEPT_*" git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162103 91177308-0d34-0410-b5e6-96231b3b80d8
ynamic/asan_interceptors_dynamic.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
san_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
MakeLists.txt
san_interceptors.cc
san_malloc_mac.cc
ynamic/asan_interceptors_dynamic.cc
|
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
san_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
san_intercepted_functions.h
san_interceptors.cc
|
9029bdaa43ba59bbc0e73ccb9fa4a0f578bc283d |
15-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] lit tests: use nm instead of llvm-nm, until llvm-nm becomes usable on Mac. Port output test change in r161948 to lit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161951 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/CMakeLists.txt
it_tests/interface_symbols.c
it_tests/sanity_check_pure_c.c
|
d14db182365578e79f5f60c5cf1052d5f9a0edef |
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Check for filenames and numbers to detect possible problems with asan_symbolize.py on -fPIE binaries. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161948 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/use-after-free.c
|
5cfa30e23c092df3265b1ff9e205f36874a2e194 |
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Pass offset of the frame address within the binary to addr2line instead of the absolute address. Fixes the problem with -PIE binaries. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161947 91177308-0d34-0410-b5e6-96231b3b80d8
cripts/asan_symbolize.py
|
71d47fff39a675607933e84071b2e342cc989a0a |
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Patch the frame address regardless of the frame number. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161946 91177308-0d34-0410-b5e6-96231b3b80d8
san_stack.cc
|
37c4853762c6123a5fef0042d8f65193791b355c |
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Move the prototype of __CFInitialize to asan_mac.h so that asan_malloc_mac.cc may use it in the dynamic library mode. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161945 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_mac.h
|
ec3b0732a62bd0a52da7bbfc4e227038ccf9372c |
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Use SANITIZER_INTERFACE_ATTRIBUTE instead of __attribute__((visibility("default"))) Export CheckFailed, asan_malloc, asan_free, asan_memalign, AsanStackTrace::CompressStack, AsanStackTrace::UncompressStack from the dynamic runtime library. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161943 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_rtl.cc
san_stack.cc
|
11f2b17a5cae796c047a7e22bea4452da337bbce |
15-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Make __asan::asan_{malloc,free,memalign} globally visible, so that the dynamic version of the runtime will export them. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161942 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
|
a10d1dccd93a4aed127719e75a457987a2e8932c |
15-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Port (the last one) tricky interface_test to lit, and a *huge* chunks of boilerplate to run tests for 32/64 bits and all optimization levels. Alas, lit doesn't support for loops in RUN-lines... git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161941 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/Linux/clone_test.cc
it_tests/Linux/interception_failure_test.cc
it_tests/Linux/interception_malloc_test.cc
it_tests/Linux/interception_test.cc
it_tests/deep_tail_call.cc
it_tests/dlclose-test.cc
it_tests/global-overflow.cc
it_tests/heap-overflow.cc
it_tests/interface_symbols.c
it_tests/large_func_test.cc
it_tests/lit.cfg
it_tests/memcmp_test.cc
it_tests/null_deref.cc
it_tests/shared-lib-test.cc
it_tests/stack-overflow.cc
it_tests/stack-use-after-return.cc
it_tests/strncpy-overflow.cc
it_tests/use-after-free.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
san_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
san_interceptors.cc
|
589231cf31932e3a132b8fe37b0425d46abe6d32 |
15-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] use clangxx_asan instead of clang_asan for C++ lit tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161936 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/Linux/clone_test.cc
it_tests/Linux/interception_failure_test.cc
it_tests/Linux/interception_malloc_test.cc
it_tests/Linux/interception_test.cc
it_tests/deep_tail_call.cc
it_tests/default_options.cc
it_tests/dlclose-test.cc
it_tests/global-overflow.cc
it_tests/heap-overflow.cc
it_tests/large_func_test.cc
it_tests/lit.cfg
it_tests/memcmp_test.cc
it_tests/null_deref.cc
it_tests/shared-lib-test.cc
it_tests/stack-overflow.cc
it_tests/stack-use-after-return.cc
it_tests/strncpy-overflow.cc
it_tests/use-after-free.cc
|
41f85b9e6a88f801955d99c8a8233b97e64c51ff |
15-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] port remaining output and feature tests to lit. TODO: we should in fact run most of the tests for 32/64 bits and for all optimization levels git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161935 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/global-overflow.cc
it_tests/heap-overflow.cc
it_tests/large_func_test.cc
it_tests/lit.cfg
it_tests/memcmp_test.cc
it_tests/null_deref.cc
it_tests/sanity_check_pure_c.c
it_tests/sleep_before_dying.c
it_tests/stack-overflow.cc
it_tests/stack-use-after-return.cc
it_tests/strip_path_prefix.c
it_tests/strncpy-overflow.cc
it_tests/use-after-free.cc
|
2ad9b21f865d305057deadb839d673cc499b439e |
15-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] port interception and shared library tests to lit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161933 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/Linux/interception_failure_test.cc
it_tests/Linux/interception_malloc_test.cc
it_tests/Linux/interception_test.cc
it_tests/SharedLibs/dlclose-test-so.cc
it_tests/SharedLibs/lit.local.cfg
it_tests/SharedLibs/shared-lib-test-so.cc
it_tests/dlclose-test.cc
it_tests/shared-lib-test.cc
|
c58b57eac9cc1a495f3c8ffa5fe4a5cf55e96a6a |
15-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] move declaration of __asan_default_options to interface header git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161932 91177308-0d34-0410-b5e6-96231b3b80d8
san_flags.h
san_interface.h
utput_tests/test_output.sh
|
0aa04b3f432bc55e7c116d5280685ee3f243be8e |
14-Aug-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] better diagnostics for mmap failure git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161874 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
08d978809ac98095815e5cab80caeb0089f89a1e |
14-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] make sure __asan_default_options symbol is exported git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161873 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
c6b8716d9acd202d311a7d9095eeed440bba1ce5 |
14-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] make sure __asan_default_options gets default visibility, port corresponding test to lit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161869 91177308-0d34-0410-b5e6-96231b3b80d8
san_flags.h
san_rtl.cc
it_tests/default_options.cc
|
25fa5e1f50d74a2499d73657535dc043d2f5607b |
14-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] support for running OS-specific tests using lit, port clone_test as an example git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161864 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/Linux/clone_test.cc
it_tests/Linux/lit.local.cfg
it_tests/lit.site.cfg.in
|
e2430d22c5f9055622a98dc9f885fc73b64cba23 |
13-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] add __asan_set_on_error_callback into force_interface_symbols (thanks to cool test by glider@) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161756 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
f657a1977b6053c76ca8393f574da7593ea3ea12 |
13-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Add __asan_set_on_error_callback() interface function that allows user to set a callback to be called right when ASan detects an error git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161754 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
san_report.cc
ests/asan_noinst_test.cc
|
be98caf9fe5e7b94b2009616cf31f0d87cf98d67 |
13-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] If ASan finds second error report, wait for some time and die (instead of running in a busy loop) to make sure ASan won't hang if it finds error while reporting an error in the same thread git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161749 91177308-0d34-0410-b5e6-96231b3b80d8
san_report.cc
|
9873792adb79e9daa1594564cbe5b2d680c5ed13 |
10-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] share code executed at the beginning/end of printing error reports git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161666 91177308-0d34-0410-b5e6-96231b3b80d8
san_report.cc
san_report.h
utput_tests/null_deref.cc
|
fe51abb4949ad9976168bf53edb52c20016b9a0d |
10-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] CMake support for building ASan runtime as a universal binary on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161665 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
it_tests/CMakeLists.txt
ests/CMakeLists.txt
|
79fc3c042bbe8348fb6f3bff7a5575e4425e5a38 |
10-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Remove the setjmp.h dependency, fix the comment. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161662 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_mac.cc
|
d262653fa207c6ee89700f192c5ff809a8ed6f52 |
10-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Temporary fix for http://code.google.com/p/address-sanitizer/issues/detail?id=99: when trying to free memory that actually belongs to the system purgeable zone, use malloc_zone_free(malloc_default_purgeable_zone(), ptr) instead of asan_free(). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161661 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_mac.cc
|
5a9938d4de74d41cb5f167f751a621dfb7545b64 |
09-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Add a test checking that all the "__asan_" interface functions are present in a binary built with -dead_strip. Fix force_interface_symbols() so that none of the interface symbols is stripped. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161582 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
utput_tests/test_output.sh
|
663c50134e01feefb6c5418c6ec7753be951c14f |
09-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Move mac-specific error reports to asan_report.cc as well git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161576 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_mac.cc
san_report.cc
san_report.h
|
812ff90eaad0e4555554ffb81db0e611ec434e10 |
09-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Small fix to please tests on Windows, where stack unwinding using provided pc/bp works too bad git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161575 91177308-0d34-0410-b5e6-96231b3b80d8
san_report.cc
san_report.h
|
c98570beff64ec0a513dcc11a4662ffba70e43dd |
09-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Move __asan_report_error implementation to asan_report.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161574 91177308-0d34-0410-b5e6-96231b3b80d8
san_report.cc
san_report.h
san_rtl.cc
|
448fe9a2383222633194754de34e6a3c0351ac68 |
09-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Use a switch instead of a simple condition in force_interface_symbols(). Otherwise Clang eliminates everything after the first interface symbol that is marked noreturn. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161573 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
e4bfca2b154a6ab4eda921aff454035f33f3551a |
09-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] move code that describes globals to asan_report.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161572 91177308-0d34-0410-b5e6-96231b3b80d8
san_globals.cc
san_report.cc
san_report.h
|
e218beb2d14b663bd277158f386a86d0e62fef74 |
09-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] move some functions that describe addresses to asan_report.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161571 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.h
san_globals.cc
san_internal.h
san_report.cc
san_report.h
san_rtl.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
san_interceptors.cc
san_report.cc
san_report.h
|
f7c1d18183d2dfbd02864cf47b3239d6a5d717c0 |
09-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Move error reports away from ASan allocator. Add new source file to CMakeLists as well git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161569 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
san_allocator.cc
san_report.cc
san_report.h
|
7354509ec8a37262c5ea0c54f99afee8a5116ce5 |
09-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Create new files asan_report.{h,cc} as a preparation for refactoring of ASan error reporting code. Currently ASan reports many kinds of errors, and the code that actually prints error messages can be found inside allocator, OS-specific files, interceptors code etc. An example of maintenance troubles this situation causes: There is currently an ASan interface function that registers callback which should take the char buffer with error report printed by ASan. This function is now broken, as one has to insert callback calls to all the places in ASan code where the error reports are printed, surprisingly it is not only "__asan_report_error" function... git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161568 91177308-0d34-0410-b5e6-96231b3b80d8
san_posix.cc
san_report.cc
san_report.h
|
9b7409ad61a3448f44fa9911debdd52ad0a6d3c8 |
07-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] simplify cmake rules for adding lit testsuites git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161412 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/CMakeLists.txt
|
6ffcb580a0b1a086c4ffa1f943ed983c2bc6b97d |
07-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] add llvm_tools_dir to lit.site.cfg for ASan and add it to PATH git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161411 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/lit.site.cfg.in
|
4afc63c18f7d811f31dbd2e5d825ce9d10c93dec |
07-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Add support for running unit tests by lit (as a part of 'make check-asan' command) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161406 91177308-0d34-0410-b5e6-96231b3b80d8
it_tests/CMakeLists.txt
it_tests/Unit/lit.cfg
it_tests/Unit/lit.site.cfg.in
it_tests/lit.site.cfg.in
ests/CMakeLists.txt
|
6dd1dde531b8fb6cf7a3e1dcda86170f6ac3a988 |
06-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] fix names of malloc/free replacements on Android git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161322 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_linux.cc
|
4e21c6bc78bdc36736cd61639a160ea5f725b333 |
06-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] add new ASan option 'strip_path_prefix' to remove useless prefices from filenames in stack traces git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161321 91177308-0d34-0410-b5e6-96231b3b80d8
san_flags.h
san_rtl.cc
san_stack.cc
utput_tests/test_output.sh
utput_tests/use-after-free.c
|
531c7d983da8debc447c1b3f9aee76a291376705 |
06-Aug-2012 |
Alexander Potapenko <glider@google.com> |
AllocationSize(ptr) should check that |ptr| actually points to the beginning of the chunk it belongs to. Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=86 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161320 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
|
51584046b5a19fcc3ef47a0ade2e88b58ded7e81 |
06-Aug-2012 |
Shih-wei Liao <sliao@google.com> |
Apply changes to migrate to compiler-rt upstream. Change-Id: Icf463f4b5aa004794ace9acb34a22e434ae71b53
ndroid.mk
|
57cdbbc3ec7ac5ec4a467d48b42226d674aebbf7 |
06-Aug-2012 |
Shih-wei Liao <sliao@google.com> |
Merge with compiler-rt upstream r159129. Conflicts: lib/asan/asan_mapping.h Change-Id: Id688bc0eab234e600214216ebc469cdf01ac506c
|
897e89f84c42bd166521684c1aedb7d5bec6954b |
02-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Implement LinuxSymbolizer instead of symbolize_addr2line. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161181 91177308-0d34-0410-b5e6-96231b3b80d8
cripts/asan_symbolize.py
|
8e39869fdc1c56eeaedb6b793e5ada67f41925f3 |
02-Aug-2012 |
Alexander Potapenko <glider@google.com> |
Some refactoring for asan_symbolize.py: introduced the Symbolizer class and implemented DarwinSymbolizer for atos-based symbolization, BreakpadSymbolizer for breakpad-based symbolization (files produced by the dump_syms tool, http://code.google.com/p/google-breakpad/source/browse/#svn%2Ftrunk%2Fsrc%2Ftools%2Fmac%2Fdump_syms) and ChainSymbolizer to allow falling back if a symbolizer hadn't succeeded. Fixed pylint warnings. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161176 91177308-0d34-0410-b5e6-96231b3b80d8
cripts/asan_symbolize.py
|
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
san_interceptors.cc
ests/asan_test.cc
|
3dc47e5969979689dbf5f3743f501cd2beac03cc |
01-Aug-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Make ASan/TSan sources depend on headers from interception library git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161113 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.mk
|
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
san_interceptors.cc
|
7274ff82fab3b167514e2aba81aa775d9fd73ca8 |
31-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
First tiny move towards integrating AddressSanitizer regressions test into LLVM lit-based testing infrastructure. The goal is to be able to run ASan tests by simply running "make check-asan" command from CMake build tree: * tests should use fresh clang binary from current build tree. * tests should use the same RUN-lines syntax as llvm/clang reg tests. Next steps: - restricting tests to machines where target is equal to host, i.e. where we can produce working binaries. - moving AddressSanitizer unit tests to lit as well. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161050 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
it_tests/CMakeLists.txt
it_tests/deep_tail_call.cc
it_tests/lit.cfg
it_tests/lit.site.cfg.in
|
970a9b9c6c6bb894557fe2d1779118ee8c3070d8 |
31-Jul-2012 |
Alexander Potapenko <glider@google.com> |
Factor out the main() function. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161046 91177308-0d34-0410-b5e6-96231b3b80d8
cripts/asan_symbolize.py
|
b0bb7fb31301ee9ac9cf41f21d3a19987dc30609 |
30-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] fix cmake build warning git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160957 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
|
837279471ab81dcb732230ff67656030b4d75ee9 |
27-Jul-2012 |
Stephen Hines <srhines@google.com> |
am 213fe112: Merge changes I25b72142,I4800ba14 * commit '213fe1121889ea8a2c23f78f189d8f48a59dde3c': Update for ASan cherry-pick. [asan] ensure that asan_init is called in str[n]cmp. Bug found by Nick Kralevich (thanks)
|
4800ba143bc7ad9eb5236f89ab6aa3c2474ba160 |
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
san_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
san_interceptors.cc
|
4d57f44ae53d766d77fd21ceee5f0b7e56429b04 |
25-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
cmake for compiler-rt: add a function to set output dirs for compiler runtimes equal to directory used by Clang driver. Use it for ASan runtime. Also, make sure that ASan unit tests depend on the ASan runtime. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160721 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
ests/CMakeLists.txt
|
b831086e7c1e6004cf57594ec81b662f290dc2ac |
25-Jul-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] don't return from a never-return function. fix a test that had a chain of bugs instead of just one git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160719 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
ests/asan_noinst_test.cc
|
b750c4c8af128bdd63543f3715f2c147fc3e95bf |
25-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] fixup for r160712: provide a default definition for weak __asan_default_options() git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160718 91177308-0d34-0410-b5e6-96231b3b80d8
san_flags.h
san_rtl.cc
|
8a1dd56a284de3bb94ebcfaace49266bdf0d26c1 |
25-Jul-2012 |
Alexander Potapenko <glider@google.com> |
Make __asan_default_options a weak function that returns a const char*. Users may define it to override the default ASan options. This function has to be marked with __attribute__((no_address_safety_analysis)), because it is called before ASan is fully initialized. Add an output test checking the __asan_default_options functionality. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160712 91177308-0d34-0410-b5e6-96231b3b80d8
san_flags.h
san_rtl.cc
utput_tests/default_options.cc
utput_tests/test_output.sh
|
b0af63965aeab26c463dd761f5b2b9cf8560065b |
24-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
Revert r160669 (except for compile flag updates) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160671 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
a43a62a25c55b811052249380cb6d2f7d020a8fc |
24-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] hacking cmake build: after generating asan runtime, copy it to the Clang lib directory where Clang driver expects to find it. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160669 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
1a7741b4e3c50a986502507fa8055475dd0fa0d0 |
24-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Support for cmake build of ASan unittests in 32-bit LLVM build. Currently, to run ASan unit tests both for 32- and 64 bits one has to maintain two distinct LLVM builds. In a bright future, we'd like to use a single build for this git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160666 91177308-0d34-0410-b5e6-96231b3b80d8
ests/CMakeLists.txt
ests/asan_break_optimization.cc
ests/asan_noinst_test.cc
|
75b19ebf25af204cf209d108997272822241d6da |
23-Jul-2012 |
Alexander Potapenko <glider@google.com> |
Intercept CFAllocator for each thread in the program. Test that child threads use the ASan allocator, that allocated memory can be passed to another thread and deallocated on it. This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=81 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160630 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_mac.h
san_malloc_mac.cc
san_thread.cc
san_win.cc
ests/asan_mac_test.h
ests/asan_test.cc
|
63201b127e21d6fbfb6de62d0e44a5de01288153 |
23-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] minor fixes to silence cmake build warnings git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160624 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
ests/asan_noinst_test.cc
ests/asan_test.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
san_interceptors.cc
san_mapping.h
san_rtl.cc
ests/asan_noinst_test.cc
|
08e80a43a4046f50270cc86b5ad3a16b94375f97 |
19-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] subtract one from PCs in ASan error reports (as they originally contain return addresses). Make output tests stricter. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160508 91177308-0d34-0410-b5e6-96231b3b80d8
san_stack.cc
utput_tests/heap-overflow.cc
utput_tests/large_func_test.cc
utput_tests/null_deref.cc
utput_tests/shared-lib-test.cc
utput_tests/strncpy-overflow.cc
utput_tests/use-after-free.cc
cripts/asan_symbolize.py
|
c603ad2a1ce425d7f3f74102c9d9fd37b1aea847 |
19-Jul-2012 |
Alexander Potapenko <glider@google.com> |
Suppress the stderr output from atos. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160502 91177308-0d34-0410-b5e6-96231b3b80d8
cripts/asan_symbolize.py
|
b134ffa00ce2a4cbf7f48ac029e31c3e6e23ff6b |
17-Jul-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] get rid of the last operator new call in asan rtl git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160347 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
san_thread.cc
san_thread.h
|
9b1b10193420f5adc769eda0d5bd548e429e0ce2 |
10-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] fix CMake build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159988 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
7ed1d2b699767dd1875994cb625d51a95b44221a |
10-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] move flags description to separate header, add comments about them. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159985 91177308-0d34-0410-b5e6-96231b3b80d8
san_flags.h
san_interface.h
san_internal.h
san_rtl.cc
|
4fbbcbea41c91498ac4cfbb3d3c7e1d83d7bb380 |
09-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] cleanup: remove dead flag git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159934 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_rtl.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
san_allocator.cc
san_globals.cc
san_interceptors.cc
san_internal.h
san_linux.cc
san_mac.cc
san_malloc_mac.cc
san_poisoning.cc
san_posix.cc
san_rtl.cc
san_stack.cc
san_stack.h
san_thread.cc
san_thread_registry.cc
|
0fedcd5abe8e9d51dc7177cf2fa239d9b83e270b |
06-Jul-2012 |
Alexander Potapenko <glider@google.com> |
Small fix: do not replace the default CFAllocator if it has been replaced already. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159824 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_mac.cc
|
23a3b760646aab699d29896d4feaf2fc84ec3955 |
06-Jul-2012 |
Alexander Potapenko <glider@google.com> |
Because CFAllocatorCreate() should also be called after __CFInitialize() on Lion, do so by factoring the CFAllocator logic into ReplaceCFAllocator(), which is called from either the __CFInitialize wrapper or __asan_init(), depending on which of them is called later. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159822 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_mac.cc
|
bf9f6fbf015f687784e26f26570924be4ca3924f |
06-Jul-2012 |
Alexander Potapenko <glider@google.com> |
A portable way to check whether __CFInitialize has been called: compare kCFAllocatorSystemDefault._base._cfisa to 0. This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 on both Lion and Snow Leopard. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159821 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_mac.h
san_malloc_mac.cc
|
d079db6dfbf3b0ec5fa1cc8d093e0dae6f970bf8 |
06-Jul-2012 |
Alexander Potapenko <glider@google.com> |
Do not check for __CFRuntimeClassTableSize on non-10.6 systems, where this symbol is private. This change may cause http://code.google.com/p/address-sanitizer/issues/detail?id=87 to re-appear on Lion. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159819 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_mac.h
san_malloc_mac.cc
|
decaec9ee3177b5e81e358ad8e93ab70b38a1cc0 |
05-Jul-2012 |
Alexander Potapenko <glider@google.com> |
Fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 by making sure we replace the default CFAllocator only after __CFInitialize has been called. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159749 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_malloc_mac.cc
|
e93be8414babdb4f4dbb31dc8b34a81809ca7c11 |
04-Jul-2012 |
Alexander Potapenko <glider@google.com> |
Do not call malloc_zone_from_ptr() for the pointers passed to mz_size() and mz_free(). These callbacks assume that the memory belongs to asan_zone, so it's incorrect to pass it to another one. If a need for this appears (e.g. system libraries free the memory using wrong zone), it should be documented. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159713 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_mac.cc
|
c2018c124e4b3fe463bb996e57a0d7aa552b12f4 |
04-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Minor fix in symbolizer output. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159709 91177308-0d34-0410-b5e6-96231b3b80d8
san_stack.cc
|
a68633fb76208137ccb807914df52758ee5ca6f0 |
03-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159652 91177308-0d34-0410-b5e6-96231b3b80d8
san_stack.cc
|
62f294020ce5d60dc51883e7708a56247c366d14 |
02-Jul-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159514 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
san_thread_registry.h
|
c04d8b39795b8faab2c172da59462f4e54823533 |
29-Jun-2012 |
Dmitry Vyukov <dvyukov@google.com> |
tsan/asan: unify ScopedLock git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159438 91177308-0d34-0410-b5e6-96231b3b80d8
san_lock.h
|
fce5bd4cc29fddb5e8f0cb9c12df7c10187a991d |
29-Jun-2012 |
Dmitry Vyukov <dvyukov@google.com> |
tsan/asan: unify atomics (move atomics from tsan to sanitizer_common) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159437 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_rtl.cc
|
dbd8aacc28bf631eb73f48611758b51e08e59f9a |
29-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] cmake unit tests: explicitly add necessary linker flags when linking unit tests with asan runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159420 91177308-0d34-0410-b5e6-96231b3b80d8
ests/CMakeLists.txt
|
2084543fc20ee58028bfab949f1502789199ff77 |
29-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] cmake-based unit tests: merge instrumented and non-instrumented files into one test binary git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159419 91177308-0d34-0410-b5e6-96231b3b80d8
ests/CMakeLists.txt
|
c9aeed824ebedb3b517826e648adcedc20103c46 |
28-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] fix the build - erase second main as we link all test sources together git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159348 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_noinst_test.cc
|
d00ecb64892dcb03c5ae93a654da669b96753b01 |
28-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] silence various warnings in cmake build of asan unit tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159347 91177308-0d34-0410-b5e6-96231b3b80d8
ests/CMakeLists.txt
ests/asan_noinst_test.cc
|
37dd1d78906228d412caf05102106773dfa7222f |
28-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] cmake support for running asan unit tests on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159345 91177308-0d34-0410-b5e6-96231b3b80d8
ests/CMakeLists.txt
ests/asan_mac_test.mm
|
79753b2c945b590e9a60a2ac2d96c088f920a905 |
28-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] update cmake rules so that ASan unit tests can include googletest (and, hence, llvm) headers when they are built by fresh Clang git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159343 91177308-0d34-0410-b5e6-96231b3b80d8
ests/CMakeLists.txt
|
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
san_allocator.cc
san_interceptors.cc
san_mac.cc
|
46d7b0bd647fa4844f9fe4ca9be31b8341ad12f5 |
27-Jun-2012 |
Evgeniy Stepanov <eugenis@google.com> |
Print inlined frames in the symbolized report. With this change, symbolize.py makes use of "-i" option of addr2line tool to get information about enclosing scopes of inlined functions. Change-Id: Ie42a4265356d7e169e99f7f389069a9eab8963e3
cripts/symbolize.py
|
984f6cf119e26ec25463d58235d613bfea114127 |
27-Jun-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Add support for building the ASan instrumentation unit tests with the just-built Clang binary, and linking them against the just-built ASan runtime. This is *very* brittle. I expect it will require tweaking, and I've pro-actively disabled it on non-Unix builds and on cross-builds. It is also currently missing dependency edges on GoogleTest header files and a few other corner cases, but those can be fixed. This is the major milestone of a mini-bootstrap-like build of the unittest. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159255 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
ests/CMakeLists.txt
|
94cc7e121c3271693497367a0ebf35697840ad74 |
25-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] update the cmake file for asan git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159143 91177308-0d34-0410-b5e6-96231b3b80d8
ests/CMakeLists.txt
|
bff533684731c89bd5e99d0cf950a86c21a342e8 |
25-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] move tests from asan_interface_test.cc to asan_noinst_test.cc. Now all these tests do not require instrumentation and work directly with asan rt git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159135 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
ests/asan_interface_test.cc
ests/asan_noinst_test.cc
|
821f21b7cdd0bcc91102f08c8ee0773fd9273046 |
25-Jun-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Cleanup the handling of CFLAGS even more in the cmake build for ASan. Add the initial support for building ASan tests. The first change here is to try to get the CFLAGS to more closely match those used by the old Makefile. There are probably still goofs here, ASan folks, your review would be appreciated. The second big change is to add support for building both instrumentation based an non-instrumentation based unittests for ASan. They are built a bit differently from how the old makefiles managed things. Specifically, there are two binaries, one for the non-instrumented case, and one for the instrumented case. Also, the instrumented unit tests rely on the host compiler supporting AddressSanitizer's intrumentation pass. This is kind-of gross, but I don't know of a better way yet. I've mailed llvmdev to discuss this issue. One big caveat is that the detection logic currently doesn't work. I've commented it out temporarily as I'd like to get feedback from the ASan developers, etc. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159134 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
ests/CMakeLists.txt
|
e7539bf38e82db273708c5007bdb226c1a280b54 |
25-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] get rid of '#include <malloc.h>' in the implementation of malloc interceptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159132 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_linux.cc
|
a765ffcef39dc37bd6d7e597286fd76fbeb1b9fa |
25-Jun-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Another big step toward a viable CMake build system for CompilerRT, ASan, and friends. This explicitly switches the CompilerRT CMake build to require CMake version 2.8.8 or newer which provides first-class support for "object" libraries which consist of a pile of '.o' files -- exactly what is desired for composing runtime libraries. I've gone ahead and switched to using this. I've also added the interception library which I missed initially. And I've added proper dependencies between the various libraries. With this, I'm able to build archives for asan that appear to contain all of the necessary .o files. The final tweak here is to start setting up the compile flags and macro defines expected by ASan and its helper libraries. These may not be entirely correct currently, they're based loosely on my reading of the old Makefiles. However, they can be tweaked more easily now that they're wired up properly. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159129 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
6bae39d1db13f60d3e9b8393e5b9d9eb2ab1b5c0 |
25-Jun-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Lots of trivial changes to remove extraneous semicolons throughout ASan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159128 91177308-0d34-0410-b5e6-96231b3b80d8
san_interceptors.h
san_malloc_linux.cc
san_stack.h
|
94c54f19d4330cbf2b6fd83b65841f706e34365e |
23-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix -Wsign-compare git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159083 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
f4e8fc675ab52d0b3022847764a70ed7f03817bd |
21-Jun-2012 |
Alexander Potapenko <glider@google.com> |
Small lint fix. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158922 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
43d03f3775677ca8e4727d49d1256de014351b95 |
21-Jun-2012 |
Alexander Potapenko <glider@google.com> |
Add a test for issue 81 -- AddressSanitizerMac.DISABLED_CFAllocatorDefaultDoubleFree_ChildPhread git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158921 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_mac_test.h
ests/asan_mac_test.mm
ests/asan_test.cc
|
39b2e6aaf20e7a3257fd0146c35cec587b3fffb0 |
21-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] fix lint error git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158905 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
effd6bf516b7109460647253aa1a62046ca9bb7a |
21-Jun-2012 |
Alexander Potapenko <glider@google.com> |
Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158886 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
0aa794d78fbb6359f81025217559f1b03ff07999 |
21-Jun-2012 |
Alexander Potapenko <glider@google.com> |
Factor the common code out of cf_free and mz_free. Introduce the mac_ignore_invalid_free flag (0 by default) which makes both cf_free and mz_free ignore invalid free invocations and leak memory. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158885 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_malloc_mac.cc
san_rtl.cc
|
bd0fbe68a9a686454c6c5a670bca9c8d33318f93 |
21-Jun-2012 |
Alexander Potapenko <glider@google.com> |
Fix the output tests on Darwin git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158870 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/use-after-free.cc
|
e205a9daec9ec4afed956cf5455889725b9192fb |
21-Jun-2012 |
Alexander Potapenko <glider@google.com> |
Actually intercept free() to ensure that the deallocations caused by other functions directly calling it are routed to our allocator. For the allocations that do not belong to any malloc zone check whether they're padded with a pointer to ASan's CFAllocator. If so, free the original (unpadded) pointer. This should fix AddressSanitizerMac.NSURLDeallocation and issue 70. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158863 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_malloc_mac.cc
ests/asan_test.cc
|
df42b619de6f7cbf23a68d91a924cfb44b9fd201 |
20-Jun-2012 |
Alexander Potapenko <glider@google.com> |
Add a test for NSURL deallocation (issue 70) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158843 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_mac_test.h
ests/asan_mac_test.mm
ests/asan_test.cc
|
479d47f739a9f36cbb3cf2bfdbd01c62a7b3128f |
20-Jun-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Resuming work on the compiler-rt CMake build at long long last. In order to get it working again, two changes were needed: - I had to give up on glob-based file expansion. This just isn't well supported by CMake, and until we convince upstream there of its value, it's not worth dealing with the pain. - Add the common library as otherwise even ASan won't build. This now builds again, although the "correctness" of it is a touch debatable. ;] Specifically, there is no merging of the common runtime library with the asan runtime library into a single archive file. I'm not really sure what the best technique is for that, and it may be influenced by the ongoing discussion about how best to link runtime libraries. Note of course that this is still very much WIP. It doesn't entirely work yet, and remains disabled by the LLVM projects/CMakeLists.txt until it is in a working state. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158811 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
de08c02aa3007a590bfb7d43f31d5b1a0e7d337c |
19-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Renaming: SNPrintf -> internal_snprintf (and move it to sanitizer libc) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158710 91177308-0d34-0410-b5e6-96231b3b80d8
san_printf.cc
san_win.cc
|
fa82b0887fd558b77a856730a0656460d5bf078d |
15-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Use ProcessMaps in symbolizer to get module name and offset for instruction address git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158522 91177308-0d34-0410-b5e6-96231b3b80d8
san_stack.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
san_interceptors.cc
san_interceptors.h
san_internal.h
san_rtl.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
san_interceptors.cc
san_interceptors.h
|
dd3a911e46b3f0416d60d9be5c84ccfc4b1c3aa8 |
15-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] move ShadowRangeIsAvailable and several defines to common runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158499 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_rtl.cc
san_win.cc
|
4c49666e611f06241bb8462cea7674d877241492 |
15-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] move atomic ops, min/max and sort to commnon runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158496 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_win.cc
|
fa3daaf1d66314658e7c05bf63dc825d179f2faf |
15-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] move more portability wrappers to common runtime: sleep, _exit, abort, atexit, pthread_self git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158493 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_thread_registry.cc
san_win.cc
|
be7420cc79d8580eb354666eef638d39ee9cff80 |
15-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] move DumpProcessMap and DisableCoreDumper to common runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158490 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_rtl.cc
san_win.cc
|
f607fc1c67a613a59a1db3c80c5d1322e1978102 |
14-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] move rest of mmap routines to common sanitizer runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158452 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
san_win.cc
|
3dbeabb3446f203156ae03d957de9bdf50933ae4 |
14-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] move portable GetEnv to common sanitizer runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158451 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
san_win.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
san_interceptors.cc
san_interceptors.h
|
996651d09e56caa91ffcc33bf1a13a283cfcd5e2 |
14-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] don't include deleted header git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158448 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_mac.cc
san_posix.cc
san_stack.cc
san_thread.cc
san_win.cc
|
fc1415aa189d10317aa5f9923a3fc98706ed9e51 |
14-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] remove obsolete header asan_procmaps.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158447 91177308-0d34-0410-b5e6-96231b3b80d8
san_procmaps.h
|
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
san_interceptors.cc
san_interceptors.h
|
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
san_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
san_interceptors.cc
ests/asan_test.cc
|
0334fc8564e91d5ebd495066bb263af36331fe61 |
07-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] slow 16-byte redzones (still experimental) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158143 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_rtl.cc
|
ed996f79710f532bf231537e44d5c8c9c9d57e8d |
07-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Fix mac build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158141 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
|
e5931fd7d2a74fd7fb60bd8d7f644cca51a24364 |
07-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] factor out GetThreadStackTopAndBottom from ASan runtime to common. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158140 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_mac.cc
san_thread.cc
san_win.cc
|
6895adc39c4e09371154c8037366ad4464163ed0 |
07-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] __asan::AsanProcMaps -> __sanitizer::ProcessMaps. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158139 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_mac.cc
san_posix.cc
san_procmaps.h
san_stack.cc
|
cffe2f5c30c27234260d004b54152916ff0c45c6 |
07-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Move ReadFileToBuffer to sanitizer_common. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158138 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_rtl.cc
|
16071602d364db4a8e99575acd098d7462ef318d |
06-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] more compaction: don't use the next field while the chunk is in allocated state git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158083 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
|
6dc48dd17d81933194366716c9e16f2e85c728b6 |
06-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] more allocator compaction git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158082 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
|
a25b3463477d2a825df4f656001fc07c594b35ac |
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Switch to common mmap/munmap routines in ASan run-time. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158078 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
san_linux.cc
san_mac.cc
san_posix.cc
san_rtl.cc
san_thread.cc
san_win.cc
|
8c53e54ef9e713953ec9495e82e5c330b96e49f3 |
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Make UNIMPLEMENTED macro common. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158077 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
f4a4d5a9a01663e74e6d8c2de3468df31245f39a |
06-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] more compaction for allocator git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158076 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
|
15a77612e0a89c1df444a2034e531c8968d0cedf |
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Use common CHECK machinery. Currently each tool has to define its own CheckFailed function. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158075 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_rtl.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
san_allocator.cc
san_interceptors.cc
san_mac.cc
san_posix.cc
san_rtl.cc
san_thread.cc
san_thread.h
san_thread_registry.cc
san_thread_registry.h
san_win.cc
|
7ebac9534c484b06a0c2822d83f082a127e743bc |
06-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] start compacting the allocator header, the goal is to make it 16 bytes w/o losing any information git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158072 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
san_posix.cc
san_win.cc
|
7fdcdf5a3a7090ec86d426a815bb42f3d35adf13 |
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Remove __attribute__((format)) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158070 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
675293d458c9f6c797a7211c11438eb9bfcfe9bb |
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] match type of arguments to format string on Mac. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158068 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.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
san_allocator.cc
san_globals.cc
san_interceptors.cc
san_internal.h
san_malloc_mac.cc
san_posix.cc
san_printf.cc
san_rtl.cc
san_stack.cc
san_stats.cc
san_thread.h
|
e4309e8141382372465ea065e86d8f946aa99c38 |
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] more format fixes git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158060 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
5bcca4e33ececdddd8e9e07619c129e870492251 |
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Make printf arguments match format strings better. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158059 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_globals.cc
san_poisoning.cc
san_posix.cc
san_rtl.cc
san_thread.cc
san_thread_registry.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
san_interceptors.cc
san_interceptors.h
san_internal.h
san_posix.cc
san_win.cc
|
47657ce6cbac2fa93d0fd765c5d2872443b50e87 |
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Use __sanitizer::Die() in ASan runtime. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158051 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_posix.cc
san_printf.cc
san_rtl.cc
|
4b6eec3b3e1fd8ed26aa7ed684c16bc87f0ed625 |
06-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] fix GetFreeBytesTest interface test on 32-bit Linux - delete some assumptions about the behavior of allocator in test code git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158047 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_interface_test.cc
|
94b5036ee6ba866e1702848855b6d687d1e70afa |
05-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] rename sanitizer_defs.h to sanitizer_internal_defs.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158001 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
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
san_interceptors.cc
san_internal.h
san_linux.cc
san_mac.cc
san_posix.cc
san_printf.cc
san_rtl.cc
san_stack.cc
|
0a4c906dbc8f150657ddd4f19a7192b779f1d605 |
05-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Use common defines for ASan and TSan runtime. Split defines between interface defines (can be visible in user code that includes interface ASan/TSan headers) and internal defines. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157998 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
san_internal.h
san_rtl.cc
|
8c8c8b0ecd3a7faab499556a04c54c9de5a0f284 |
05-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] change the order of tests in the asan_test binary. Makes the test runs 2x faster due to DEATH_TEST overhead (see asan issue 77) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157997 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
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
san_interceptors.cc
san_interceptors.h
san_internal.h
san_linux.cc
san_mac.cc
san_printf.cc
|
3f46cf42b0f8e0667a3bea88cf871ebd4dc0ecdf |
05-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] s/size_t/uptr in asan_mac.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157993 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
|
2221f553886c37401b5d84923634ebf04bc482f1 |
05-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] use internal_{close,read,write} in ASan runtime. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157991 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_posix.cc
san_printf.cc
san_rtl.cc
san_win.cc
|
9552db72ce37a9f090be4d9fecfbe75458c6d7bb |
05-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] use internal_open from sanitizer_libc in ASan runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157986 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
san_win.cc
|
6316c111d62df6521db68397a469fd3636e9ae7c |
05-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Fix a typo in Makefile.old git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157982 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
982cee4a0d08dfbf1896477c76d0506fc6851af0 |
04-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Enable lint for sanitizer_common/ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157931 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
ae4d9caa4f47fa6abcd641719e9f520622940c17 |
04-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
Created files sanitizer_linux.cc and sanitizer_mac.cc for platform-specific implementations of common functions. Turned asan_mmap into __sanitizer::internal_mmap. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157930 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_mac.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
san_allocator.cc
san_globals.cc
san_interceptors.cc
san_malloc_linux.cc
san_malloc_mac.cc
san_malloc_win.cc
san_new_delete.cc
san_poisoning.cc
san_printf.cc
san_rtl.cc
san_stack.cc
san_stats.cc
san_thread.cc
san_thread_registry.cc
ests/asan_benchmarks_test.cc
ests/asan_break_optimization.cc
ests/asan_globals_test.cc
ests/asan_interface_test.cc
ests/asan_noinst_test.cc
ests/asan_test.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
san_interceptors.cc
san_interceptors.h
|
5f2fe37bd979f18703a6b3b5bf71d18fca19b245 |
04-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Use ASan option symbolize to turn on internal symbolizer (in development) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157924 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
san_stack.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
san_interceptors.cc
san_interceptors.h
san_printf.cc
|
cfd605e96209d18c937501be870bd0308131e453 |
01-Jun-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix gcc build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157807 91177308-0d34-0410-b5e6-96231b3b80d8
san_new_delete.cc
|
45c8d1b28305b8660597bca3645e3ad700d76160 |
31-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] partial fix for windows build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157750 91177308-0d34-0410-b5e6-96231b3b80d8
san_win.cc
|
b49879cdb4a792048c81a96cbd91876dba34b766 |
31-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] partial fix for windows build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157748 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
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
san_allocator.cc
san_allocator.h
san_globals.cc
san_interceptors.cc
san_interceptors.h
san_internal.h
san_linux.cc
san_mac.cc
san_mapping.h
san_poisoning.cc
san_posix.cc
san_printf.cc
san_procmaps.h
san_rtl.cc
san_stack.cc
san_stack.h
san_thread.cc
san_win.cc
ests/asan_noinst_test.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
san_allocator.cc
san_allocator.h
san_globals.cc
san_interceptors.cc
san_interceptors.h
san_interface.h
san_internal.h
san_linux.cc
san_lock.h
san_mac.cc
san_malloc_linux.cc
san_malloc_mac.cc
san_malloc_win.cc
san_mapping.h
san_poisoning.cc
san_posix.cc
san_printf.cc
san_procmaps.h
san_rtl.cc
san_stack.cc
san_stack.h
san_stats.cc
san_stats.h
san_thread.cc
san_thread.h
san_thread_registry.cc
san_thread_registry.h
san_win.cc
ests/asan_noinst_test.cc
|
9aead37421a6e4bf43265e5195c6ac31fc519982 |
31-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan,tsan] introduce sanitizer_common/sanitizer_defs.h and perform some renaming in asan rt. More to come. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157743 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_allocator.cc
san_globals.cc
san_interface.h
san_poisoning.cc
san_rtl.cc
san_stats.cc
|
b99941ca42b43e850aecb55998f6f4885d455892 |
31-May-2012 |
Alexander Potapenko <glider@google.com> |
Fix the wildcards for two output tests on Darwin. It turns out that atos does not print the symbol names for static C++ functions correctly (one of the two leading underscores is omitted), so they remain mangled. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157742 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/large_func_test.cc
utput_tests/null_deref.cc
|
16e0075746b21ed866ec3be21ef0d1e46f0efed5 |
31-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan,tsan] rename files in sanitizer_common to have a common prefix (sanitizer_). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157740 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
a87bdaa1eab379ae4d9a24456f41f8ae36ba33f6 |
30-May-2012 |
Alexander Potapenko <glider@google.com> |
Be more verbose when installing the signals. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157693 91177308-0d34-0410-b5e6-96231b3b80d8
san_posix.cc
|
6b6dc57066fc154fbf08440cb41db099878a14e9 |
30-May-2012 |
Alexander Potapenko <glider@google.com> |
Fix a bug in parsing boolean flags: we used to take the first char of the key=value string instead of the first character of the value. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157692 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
e4781f0c5871a14e2c454d7788bae2e5c72bd336 |
30-May-2012 |
Alexander Potapenko <glider@google.com> |
Be less verbose when parsing the default options. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157691 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
b3cedf98a3c8545da2234c2d35cb5d687984035f |
29-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan,tsan] Add a new directory compiler-rt/lib/sanitizer_common which will contain code shared between asan and tsan run-times. Naming is hard. If you can suggest a better name for the directory -- speak up. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157611 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_internal.h
san_rtl.cc
|
ff20f17cd0543bc9d4112831574b9bb6a0f21fc6 |
29-May-2012 |
Alexey Samsonov <samsonov@google.com> |
Fixing ASan build on Win: don't use __asan_default_options git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157608 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
4113f643b0d5f857e9db5e765d11dc009d10a583 |
29-May-2012 |
Alexander Potapenko <glider@google.com> |
Do not define ___asan_default_options on Windows. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157603 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
|
62f10e7e8b604275ca1c7cc924f32854d04829fb |
28-May-2012 |
Alexander Potapenko <glider@google.com> |
Rework the flags machinery a bit. Clients may define the __asan_default_options char string containing the default options for the tool now. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157582 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
san_internal.h
san_rtl.cc
|
a27d6a7b79052bf718e6a7d74c043aedafa2c4bb |
28-May-2012 |
Alexander Potapenko <glider@google.com> |
More verbose check in AppendString. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157580 91177308-0d34-0410-b5e6-96231b3b80d8
san_printf.cc
|
f54c0e3321e2381fca3f02faefaaa6639d59c7cf |
28-May-2012 |
Dmitry Vyukov <dvyukov@google.com> |
asan/tsan: rename interceptors from __xsan_xxx to __interceptor_xxx git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157569 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/interception_malloc_test-linux.cc
utput_tests/interception_test-linux.cc
|
170169a677c4f0df1b0ac7486c7cc7cc468cfbd5 |
28-May-2012 |
Dmitry Vyukov <dvyukov@google.com> |
asan: remove static libraries on make clean git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157565 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
f2981f3bfdc7900784d446d2dde96d99fbcad756 |
25-May-2012 |
Alexander Potapenko <glider@google.com> |
Typo fix. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157477 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
fca72fd2741372d2e947366277258bff1092e73e |
25-May-2012 |
Alexander Potapenko <glider@google.com> |
Factor ParseAsanOptions outside __asan_init git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157473 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
37931239a3671ac0d2c7865f3077b0c4f71b94b3 |
25-May-2012 |
Alexander Potapenko <glider@google.com> |
Introduce the check_malloc_usable_size flag (on by default). When the flag is set to zero, we do not check for errors in malloc_usable_size. This may be useful to work around a bug in Nvidia drivers prior to 295.* git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157472 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
san_rtl.cc
|
d1a928edc0e76937dd38bdd3c357375986737e31 |
25-May-2012 |
Dmitry Vyukov <dvyukov@google.com> |
asan: fix tests depending on -m32/-m64 addr2line says either e.g. __xsan_strnlen or just strnlen git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157464 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/heap-overflow.cc
utput_tests/strncpy-overflow.cc
utput_tests/use-after-free.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
san_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
san_interceptors.cc
utput_tests/heap-overflow.cc
utput_tests/interception_failure_test-linux.cc
utput_tests/interception_malloc_test-linux.cc
utput_tests/interception_test-linux.cc
utput_tests/strncpy-overflow.cc
utput_tests/test_output.sh
utput_tests/use-after-free.cc
|
02a063660153ab4d0430b211f4dd0b3606bcbff7 |
23-May-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Use zero-based shadow by default on Android. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157318 91177308-0d34-0410-b5e6-96231b3b80d8
san_mapping.h
|
c99f70044d64482adbc1053f04b32bdbf0d4c057 |
23-May-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Move AsanShadowRangeIsAvailable() from mac to posix. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157326 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_mac.cc
san_posix.cc
|
f1ee2cd5e4c7a46e1188315daa2c79181f852bec |
23-May-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Use zero-based shadow by default on Android. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157318 91177308-0d34-0410-b5e6-96231b3b80d8
san_mapping.h
|
ed2341803878f04093f58848468926337d9ca88f |
23-May-2012 |
Dmitry Vyukov <dvyukov@google.com> |
asan: fix typo in comment git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157314 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
|
76ac5725a74b7f304803113ec90864ec2da796a4 |
22-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] nuke some old unused code git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157250 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
|
6f350e0d1c385189cb94ddde7b288a2533b45b32 |
22-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] increase the stack size limit to 256M (yes, that happens); also CHECK that the stack size is less than that on a non-main thread git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157249 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_thread.h
|
e4d141dbbaf5185f332a185c22308340657d243e |
22-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix one test on 32-bit Mac 10.7; enable another test on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157237 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_interface_test.cc
ests/asan_test.cc
|
8c505efd769a21eac7de53bc104757245af6ed4a |
21-May-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Make for-Windows RTL compileable using Clang++ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157188 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
san_win.cc
|
c8c87202f2d26f04b6c1c7e8b301e3a97852cb8f |
15-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix the old-style Makefile, which we still need to run asan tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156818 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
0d49904d50fc42b411c396c472ce70f8e4575f99 |
15-May-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] move lib/asan/interception to lib/interception so that other tools (e.g. tsan) can use it git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156816 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.mk
nterception/Makefile.mk
nterception/interception.h
nterception/interception_linux.cc
nterception/interception_linux.h
nterception/interception_mac.cc
nterception/interception_mac.h
nterception/interception_win.cc
nterception/interception_win.h
nterception/mach_override/LICENSE.TXT
nterception/mach_override/Makefile.mk
nterception/mach_override/README.txt
nterception/mach_override/mach_override.c
nterception/mach_override/mach_override.h
|
8ca02789a274fa46abccacad4a0820a9fe2f75f4 |
12-May-2012 |
Alexander Potapenko <glider@google.com> |
Increase error_message_buffer_size to 64K (16K is insufficient for large programs) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156711 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
3972ea03aa52d81ca324945ba94eea22d403df12 |
12-May-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Fix GetFrameNameByAddr hitting stale stack guards. In the current implementation AsanThread::GetFrameNameByAddr scans the stack for a magic guard value to locate base address of the stack frame. This is not reliable, especially on ARM, where the code that stores this magic value has to construct it in a register from two small intermediates; this register can then end up stored in a random stack location in the prologue of another function. With this change, GetFrameNameByAddr scans the shadow memory for the signature of a left stack redzone instead. It is now possible to remove the magic from the instrumentation pass for additional performance gain. We keep it there for now just to make sure the new algorithm does not fail in some corner case. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156710 91177308-0d34-0410-b5e6-96231b3b80d8
san_mapping.h
san_thread.cc
|
f2b1df7cb8f53f51bcb105e0d2930d99325bb681 |
10-May-2012 |
Alexander Potapenko <glider@google.com> |
Fix ReadFileToBuffer to return 0 on failure (-1 is too large if returned as size_t). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156538 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
b8a0c57f15cab97957901b5c71eaac14972b71ed |
25-Apr-2012 |
Shih-wei Liao <sliao@google.com> |
Add stlport for include <algorithm>. Fix build. Change-Id: Id54d41241a9f86ac9a2119695dd03c457871c8e8
ndroid.mk
|
8e2ac92639f80f0c850bb91d9f51a5f149c0ae29 |
25-Apr-2012 |
Shih-wei Liao <sliao@google.com> |
Merge commit '034bda5eab7cda14fac0bed3a39de4a3dbce3cff' into 20120424. Change-Id: Ie524091c0c960d8e2d53fcff1d0b8f1c988c357d
|
909888cda6417db5ca06199a5da51e3408fd35c5 |
23-Apr-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] use CLANG_VERSION in Makefile (currently 3.2) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@155350 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
0796393f2088e3b75c4110934451160eeb037fab |
23-Apr-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix asan issue #66 (correctly report type of the bug) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@155344 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
ests/asan_test.cc
|
6f262bf77b3223992f1c794829485f6995aa7434 |
23-Apr-2012 |
Alexander Potapenko <glider@google.com> |
Bump the LLVM minor version. This should fix our 32-bit Linux build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@155338 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
4eaa17848ed02cae465f10aa5fe095e42dbf0d61 |
19-Apr-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] test for issue #66 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@155127 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.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
san_interceptors.cc
|
0a27a1f97e7d089de28b39744adfc6bc61df0bf1 |
12-Apr-2012 |
Alexey Samsonov <samsonov@google.com> |
[asan] minor fix: pass flag -g to output tests as a part of CXXFLAGS git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154589 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/test_output.sh
|
c2f2d0c008c68f237959a765f9b7d20ca2acdb98 |
12-Apr-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] fix output tests - r154570 changed debug info for static functions and now they are symbolized a bit differently git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154581 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/large_func_test.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
san_interceptors.cc
ests/asan_test.cc
|
f7ceaad2919d2e26e9edea29232bc9dd8f145c42 |
09-Apr-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan] remove dispatch.h header once again - it's not present on Leopard, and we don't want to break the build of compiler-rt there. See https://trac.macports.org/ticket/33362 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154326 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
|
2dcf44991a8ec1ca7c8051eb27c5ff158530bdc3 |
09-Apr-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
Use 'typename' instead of 'class' in template<> definitions supporting POD types git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154314 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
850a49ecb344a71d62347bbee8042ae13b624033 |
06-Apr-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] last bit for gcc compatibility git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154203 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
san_internal.h
|
4d9a9576c143fb6091b01cde3a87fc62461205c8 |
06-Apr-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] minor change to please gcc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154201 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.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
akefile.old
san_interceptors.cc
san_internal.h
san_new_delete.cc
san_rtl.cc
|
f8e6fee734cf5e3d061f576244b2704853148b04 |
06-Apr-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] add flags: disable_core, abort_on_error and unmap_shadow_on_exit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154159 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_rtl.cc
san_win.cc
|
31429389e6e01567d9f03ac5b4057cc58b7fe3f2 |
05-Apr-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan/Win] Revert the local Makefile change slipped into the prev commit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154112 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
00152bf83e075df1e83bef82ae0a00bee179a956 |
05-Apr-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan/Win] Fix lint warning git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154111 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_win.cc
|
8a5d8c4d2826830b8a5bbce207145fc5436119a5 |
05-Apr-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan/Win] Fix build by using inline assembly instead of an unavailable intrinsic function git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154106 91177308-0d34-0410-b5e6-96231b3b80d8
san_win.cc
|
f1e82b8fda94535e9a646fc5fe394d9883ccfa2c |
05-Apr-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] make __asan::Deallocate immune to racy double-free (issue #57) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154097 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
san_posix.cc
san_win.cc
|
f03d8afc8b8dd072c4e2884a7475ee28ac5f3f41 |
05-Apr-2012 |
Alexander Potapenko <glider@google.com> |
Introduce the use_sigaltstack flag (off by default), which enables using alternate per-thread stacks for signal handling. This allows to print more verbose error reports for stack overflows. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154092 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_rtl.cc
san_thread.cc
san_win.cc
|
adf331e82ff0f02f68eb3aabd94f9bbd46f94dd0 |
05-Apr-2012 |
Alexander Potapenko <glider@google.com> |
Allow calling GetCurrentTidOrMinusOne() before AsanThreadRegistry was initialized. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154091 91177308-0d34-0410-b5e6-96231b3b80d8
san_thread_registry.cc
san_thread_registry.h
|
d51e0a05b4aefc85c356c9bddd8a24efc77721d9 |
05-Apr-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Initial, very rough cut at a new CMake build system for compiler-rt. Some high-level notes: 1) An explicit goal is to support building compiler-rt as a subproject build, checked out into the projects/compiler-rt directory. There are many other possible ways of building the code here, but this is optimized for development on LLVM/Clang/compiler-rt, and incremental trial and testing of the toolchain. 2) The current support is targeted at Linux. I would love to see this generalized to other platforms, but for the sake of simplicity in testing, I'm focusing here first. Much of this patch was paired with Manuel, and I credit him with the majority of the work here. Some important caveats that I'll be working on in subsequent patches: 1) This uses the host compiler rather than using the just-built-clang. 2) Currently only x86 is supported. 3) Currently, none of the tests are built or run. 4) Uses CMake's builtin globbing which doesn't update correctly. 5) This is still turned off from LLVM's CMake build until these issues are addressed git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154060 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
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
san_interceptors.cc
|
e48a197f5e2c72c350de60486fc6ef9c5ba3c681 |
29-Mar-2012 |
Evgeniy Stepanov <eugenis@google.com> |
Simplify asan build rules and add output tests. Change-Id: I66e6b2e4ef4feaa393118e7014dc423f1972d5a4
ndroid.mk
|
8c9ccc655405dd8a41264fe7eb5f902700077d1a |
30-Mar-2012 |
Alexander Potapenko <glider@google.com> |
Make sure NSObjects are allocated in a way that is visible to ASan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153762 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_mac_test.h
ests/asan_mac_test.mm
ests/asan_test.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
san_interceptors.cc
san_interceptors.h
san_mac.cc
san_malloc_mac.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
san_interceptors.cc
ests/asan_test.cc
|
552c6702493cfcab356d3aa94becf50ff019838b |
28-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix lint git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153601 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_racy_double_free_test.cc
|
44830c2f85f417bd486b49a53d97c640dd75728e |
28-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] add racy double-free test git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153586 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_racy_double_free_test.cc
|
108a237510099cebb1522262fe1fde57fc5b8f90 |
27-Mar-2012 |
Alexander Potapenko <glider@google.com> |
Log the allocator messages at a higher verbosity level. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153514 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.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
san_interceptors.cc
ests/asan_test.cc
|
f4d78cf81a8c870a7490715eb0881dc58a9e43a1 |
26-Mar-2012 |
Evgeniy Stepanov <eugenis@google.com> |
Avoid including link.h. It's not available on Android. We only use this header to find out if _DYNAMIC is present; declaring it "extern void*" does the trick. This is a cherry-pick of upstream r153431. Change-Id: I7feffaf36dc97c3d1e8412399c83d1538e5c9c44
san_linux.cc
|
aa33a50c9d0f3e3f22c8b21fa7309ec91f9d939a |
26-Mar-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Avoid including link.h. It's not available on Android. We only use this header to find out if _DYNAMIC is present; declaring it "extern void*" does the trick. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153431 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.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
san_interceptors.cc
san_internal.h
|
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
san_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
san_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
san_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
san_interceptors.cc
ests/asan_test.cc
|
938106753364d96cedc11cbdc35a15030fb44d0c |
23-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan/tests] Make 'noinline' and a bunch of other stuff portable git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153333 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
ests/asan_test_utils.h
|
f6607d097833cd53460735c1a5a2fd52b97613eb |
23-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] replace '#if ... or ...' with '#if ... || ...' git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153332 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
1bbe2561a695af15f116e5ffec7e5f9cf7c54811 |
23-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Add a few more malloc-related interceptors for Windows git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153327 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_win.cc
|
d46c02a714abc1be3380619d946fc0f545d9e8a7 |
22-Mar-2012 |
Alexander Potapenko <glider@google.com> |
Handle two-byte short jumps in the relocated code. After the instructions are moved to the branch island, fixupInstructions() expands every 2-byte ja/je instruction with a 1-byte offset into a 6-byte ja/je with 32-bit offset. The offset is fixed to point to the original function. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153249 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/mach_override/mach_override.c
|
9b90e95d4dc59c6d97ed73b2470f5e21e7b346d5 |
21-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] extend the test for long double bug git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153190 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.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
san_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
san_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
san_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
san_interceptors.cc
|
a28aa80ad371d5ab8d7ddd244ad1d695ded29a7e |
21-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[asan]: substitute extern decls with system header in asan_mac.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153182 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.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
san_interceptors.cc
san_interceptors.h
san_mac.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
akefile.old
san_interceptors.cc
san_interceptors.h
san_mac.cc
san_mac.h
|
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
san_interceptors.cc
san_mac.cc
san_mac.h
|
739eb7984139d457216623347ae3b7a706c0aadf |
21-Mar-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Support for %z to Printf() At the moment, asan internal Printf() uses %l modifier for printing values of size_t and related types. This works, because we control both the implementation of Printf and all its uses, but can be a little misleading. This change adds support for %z to Printf(). All callers that print sizes and pointers as integers are switched to %zu / %zx. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153177 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_globals.cc
san_malloc_linux.cc
san_printf.cc
san_rtl.cc
san_stack.cc
san_stats.cc
san_thread.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
san_interceptors.cc
|
dc3865b01cd56b703b77f58d5acff6529491eaf3 |
13-Mar-2012 |
Evgeniy Stepanov <eugenis@google.com> |
Build rules + Android-specific ASan bits. Change-Id: Idb4daff9fd674ebdbb97ba38e6100686416389ce
ndroid.mk
san_android_stub.cc
sanwrapper.cc
cripts/symbolize.py
|
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
san_interceptors.cc
san_mac.h
|
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
san_interceptors.cc
san_internal.h
san_mac.cc
san_mac.h
|
95d6b33a6a533f628872bd942339ff42f9ff1a6b |
20-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
[ASan]: re-enable noreturn attribute on posix git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153082 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_rtl.cc
|
cadaab1344c08b69fb3649bfb8a043bed5249145 |
16-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] disable GetOwnershipStressTest on non-linux git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152953 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_interface_test.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
san_interceptors.cc
|
feb479345ccc947e3e7429b949caa7f89c84a85e |
16-Mar-2012 |
Alexander Potapenko <glider@google.com> |
[ASan] Print the parsed ASAN_OPTIONS for verbosity>0. Move the flags around slightly. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152929 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
650a1e163ef05b89f40143eb8b9af4f64ad0b68d |
15-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] one more -Wnull-conversion fix git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152773 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.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
san_interceptors.cc
san_internal.h
san_rtl.cc
san_stack.h
utput_tests/memcmp_test.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
san_interceptors.cc
san_mapping.h
san_poisoning.cc
|
f0977db20608fa61fe6dd14d96cdd94c35c85b4e |
14-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix -Wnull-conversion warnings git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152747 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
469a1ab32f53b8fd7cde76211565ce577dfb8f14 |
13-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Undo NORETURN on POSIX as it's not clear how to do this cleanly yet git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152631 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
b55c88d6d21c862261f267c5199e3aacc0cd30eb |
13-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Fix build error on Linux; screen-reviewed by glider@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152629 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
|
23bd2bb37cbc4a2736be817d746752a03cee2d5f |
13-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan/Win] Eliminate a couple of FIXMEs, add NORETURN to CheckFailed/UNIMPLEMENTED git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152628 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_win.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
san_interceptors.cc
|
9bdf0651a2874ea5d57092cd06ad30bc7a39ce86 |
13-Mar-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: fix a couple of typos git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152617 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
|
2ac52fd9b9dfcc1bd4c3f64cfdfd715d6eae4b38 |
13-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] output test for memcmp git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152594 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/memcmp_test.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
san_interceptors.cc
san_malloc_win.cc
san_win.cc
nterception/interception.h
nterception/interception_win.cc
nterception/interception_win.h
|
27a7800419497f6248e81b2aa35f96a21d78c9a0 |
11-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Use WriteFile instead of fwrite in AsanWrite git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152540 91177308-0d34-0410-b5e6-96231b3b80d8
san_win.cc
|
25c7178bf96d2316a3d9424b118d04bc51be1a9b |
10-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] use O(log(N)) algorithm instead of O(N) in __asan_get_ownership git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152467 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
san_posix.cc
san_win.cc
ests/asan_interface_test.cc
|
d364f87f81fda55d68a9e968bd314541c4272cde |
09-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] add a (disabled) stress test for __asan_get_ownership git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152362 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_interface_test.cc
|
40928f1ec8a8f43464a83b416f75fbe89f21f753 |
08-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan]: fix off-by-one error in stack unwinder (asan issue #44; reproduced thanks to 'csmith' fuzzer) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152347 91177308-0d34-0410-b5e6-96231b3b80d8
san_stack.cc
|
50f9b8f8d1d9ac33d4bfca9fb2315f1265d957d3 |
08-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] don't use dl_iterate_phdr on linux, go back to using /proc/self/maps. Hopefully fixes the problem reported by our mozilla friends. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152341 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_linux.cc
san_procmaps.h
|
0cbaf7b22c95c9ef4384ce9f58528c90312ed8ec |
07-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Fix lint warning git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152226 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_win.cc
|
cf13eb28b24109c0523275a62973412b702cbb43 |
07-Mar-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan/Win] Intercept _msize, required for running SQLite git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152224 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_win.cc
|
dadc45d92ea166174b9b119f7fedc25fd3b538d7 |
06-Mar-2012 |
Alexander Potapenko <glider@google.com> |
Force __asan_handle_no_return into the binary built with ASan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152117 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
eeb719154538f38ffd54d8d3bfd8e113b97fe6a1 |
06-Mar-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Make sure to properly ifdef out an unused function on OSX < 10.6. PR12136. Patch from Jeremy Huddleston. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152085 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_mac.cc
|
5b6eab9dc5572a66e3af54ab087255ffa4dd5185 |
02-Mar-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Add a negative test for memcpy of long double. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151888 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
2f3f962de9aeaef47d41bf3d6009bbd0280e2620 |
01-Mar-2012 |
Alexander Potapenko <glider@google.com> |
Force __asan_set_death_callback into the resulting binary. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151808 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
d9a88ccecbd7af0d11dae4d23d85706479470fdf |
29-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Replace CRT .dll malloc with our implementation at asan_init() time git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151715 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_win.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
san_interceptors.cc
san_interceptors.h
san_interface.h
san_printf.cc
san_rtl.cc
ests/asan_interface_test.cc
|
8ae44ac678644265ba82a1b5696a402c9301a85c |
27-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Replace some #ifdef(s) with plain if(s). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151526 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
san_rtl.cc
ests/asan_test.cc
|
e04606631d3cf6e5f9e695a8af4d89c407aea33a |
27-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: add some checks to AsanChunkFifoList::PushList git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151521 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
|
34b18e17d0171813a8db299ba168aa3b70de4576 |
24-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] don't compile gtest with asan when building asan tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151391 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
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
san_interceptors.cc
san_internal.h
san_thread.cc
san_thread.h
san_win.cc
nterception/interception.h
|
bfc694d2a8531444c7c44e5785c0bb708601eb54 |
22-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: quick fix - undef INT32_MIN etc to avoid macro redefinition git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151165 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
b823e3c5f7891dbbde1eb288237f5f3d5ed64d85 |
22-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: get rid of stdlib.h and add (smaller) stddef.h instead git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151162 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
san_internal.h
san_posix.cc
san_rtl.cc
san_win.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
san_interceptors.cc
san_malloc_win.cc
san_win.cc
nterception/interception.h
nterception/interception_win.cc
nterception/interception_win.h
|
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
san_interceptors.cc
san_internal.h
|
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
san_interceptors.cc
|
c27734d7f82707ce33da39fec3cdb47f5f363e28 |
22-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: fix Makefile.old - gtest should depend on libasan git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151157 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
39c22ee8c3d2d052148a40fd00f1adbb17aabe4d |
22-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Fix style + suppress 'long' lint warnings git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151149 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
99d17ebc36fe74326493bdd3dab4082ffc1dc96e |
22-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Move the contents of AsanProcMaps::Dump() into AsanDumpProcessMaps() for Posix systems. Define AsanDumpProcessMaps as unimplemented on Windows. This should fix the Windows build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151147 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_procmaps.h
san_rtl.cc
san_win.cc
|
e6b9ebba53038ac4d1e2377ebdd15359c28368cb |
22-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Fix a wrong filename mentioned in a comment git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151145 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception_linux.h
|
ddaf73924385de46aa015059b876676ced63826f |
22-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Dump the process memory map if any of the mappings interleaves with the shadow. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151141 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
4b1506d3baf9071973a8fa094c8c33800493ced9 |
22-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Add AsanProcMaps::Dump() git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151139 91177308-0d34-0410-b5e6-96231b3b80d8
san_procmaps.h
|
38ed73630902782ba3743529d0cce2ba3014c53e |
21-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Add __asan_init to the list of C dynamic initializers to support /MD on Windows git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151059 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
de81a79f485454e55c3f168af737123dbc20d0ce |
21-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Fix the lib32 and lib64 targets. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151057 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
b39f0ceeb872024b0c64f9c0387b368ec829dc75 |
21-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
[ASan] Remove one FIXME - re-enable "free-not-malloced" reports on Windows git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151051 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
|
60490e08cce301b2dd7b72fcae8e20ef58c89a9b |
21-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Check that the FakeStack size is non-zero before looking into it. Sometimes DescribeStackAddress is called before another thread's FakeStack is initialized, which could previously cause a check to fire. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151046 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.h
san_thread_registry.cc
|
ebdbf7bbbbfdd881703a0d0d69f8ce2461a3d1c1 |
21-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: Don't include GrandCentralDispatch headers in asan headers on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151044 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.h
|
a12cd6e506e1941ff9fd55154d0d15d5b4d1cce8 |
21-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: don't use /tmp for temporary file in output tests. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151042 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/test_output.sh
|
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
san_interceptors.cc
san_interceptors.h
san_rtl.cc
|
6a3e6fd72e1e2322d28ced9d9c2adbd720e7fabf |
17-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: fix lint git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150802 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_rtl.cc
ests/asan_test.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
san_interceptors.cc
san_interceptors.h
|
788e1d704436065beb514fdde86070f61d0394ed |
16-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Allocator tweaks for low memory systems. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150689 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_rtl.cc
ests/asan_test.cc
ests/asan_test_config.h
|
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
san_interceptors.cc
san_interceptors.h
|
5e4e91cf211c76ea7103bd3718285443c5c3cd78 |
16-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] don't do AsanDie twice git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150641 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.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
san_interceptors.cc
|
afaf71f0b2c6455614e2ab8f208312dea0871fe9 |
15-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: simplify IntervalsAreSeparate function git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150569 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.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
san_interceptors.cc
san_interceptors.h
san_rtl.cc
|
c85f91f745884e8f9bc243b506e89a4e50260e11 |
14-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Add lots of missing visibility attributes. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150479 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
|
e1fe0fd868886b53cb8d5d957afebbdd47688df7 |
13-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] implement __asan_set_death_callback git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150414 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
san_internal.h
san_posix.cc
san_rtl.cc
san_win.cc
ests/asan_interface_test.cc
|
895b3872acb5bcccb1769ea69d37dd33c722f99d |
13-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Fix compilation on Mac. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150400 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
|
92baa8c808d918bd8b4b00d330ebf925e0b694d4 |
13-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Lint fix git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150399 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception_linux.cc
|
f73a6a3f81573ba85a5e29955980818b18b0a58a |
13-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Move the non-trivial implementation of AsanShadowRangeIsAvailable to asan_mac.cc to avoid crashes on Linux and Win. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150398 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
san_win.cc
|
c50e83576323d93433086b4c751f1746597a4286 |
13-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Check whether the shadow memory range intersects with an existing mapping. This should help to detect problems with ASLR or linker tricks early. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150391 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
cf93383123f57a45473d1eee9339ded1667b1e5e |
13-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: re-enable lint for output tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150386 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
utput_tests/global-overflow.cc
utput_tests/large_func_test.cc
utput_tests/null_deref.cc
utput_tests/use-after-free.cc
|
cc5f4c67fd362f725b86267d72469f8a338ae54d |
13-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: fix llvm headers in output tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150385 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/dlclose-test-so.cc
utput_tests/dlclose-test.cc
utput_tests/shared-lib-test-so.cc
utput_tests/shared-lib-test.cc
|
e204e1378a82d5bcbc941641cb638a198fc4646c |
13-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: remove match_output.py, split expected output into OS-specific and OS-independent parts git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150384 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/clone_test.cc
utput_tests/deep_tail_call.cc
utput_tests/dlclose-test.cc
utput_tests/global-overflow.cc
utput_tests/heap-overflow.cc
utput_tests/large_func_test.cc
utput_tests/match_output.py
utput_tests/null_deref.cc
utput_tests/shared-lib-test.cc
utput_tests/stack-overflow.cc
utput_tests/stack-use-after-return.cc.disabled
utput_tests/strncpy-overflow.cc
utput_tests/test_output.sh
utput_tests/use-after-free.cc
|
88e11b606013d2e6866e0d390f3a905c03e9716b |
13-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Add a missing include. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150382 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception_linux.cc
|
7b7b55e99166511ce1e66bf6b79c46ae4aa60d17 |
13-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Add a missing return. It is technically reachable on Android, where pthread_exit is not marked noreturn. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150381 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
fad8a073a90bd518cc48e269edae7e68470624b7 |
13-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: Convert templates for output tests to FileCheck format and move them inside sources git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150375 91177308-0d34-0410-b5e6-96231b3b80d8
utput_tests/clone_test.cc
utput_tests/clone_test.tmpl
utput_tests/deep_tail_call.cc
utput_tests/deep_tail_call.tmpl
utput_tests/dlclose-test.cc
utput_tests/dlclose-test.tmpl
utput_tests/global-overflow.cc
utput_tests/global-overflow.tmpl
utput_tests/heap-overflow.cc
utput_tests/heap-overflow.tmpl
utput_tests/heap-overflow.tmpl.Darwin
utput_tests/large_func_test.cc
utput_tests/large_func_test.tmpl
utput_tests/null_deref.cc
utput_tests/null_deref.tmpl
utput_tests/null_deref.tmpl.Darwin
utput_tests/shared-lib-test.cc
utput_tests/shared-lib-test.tmpl
utput_tests/stack-overflow.cc
utput_tests/stack-overflow.tmpl
utput_tests/stack-use-after-return.cc
utput_tests/stack-use-after-return.cc.disabled
utput_tests/stack-use-after-return.disabled
utput_tests/strncpy-overflow.cc
utput_tests/strncpy-overflow.tmpl
utput_tests/strncpy-overflow.tmpl.Darwin
utput_tests/test_output.sh
utput_tests/use-after-free.cc
utput_tests/use-after-free.tmpl
utput_tests/use-after-free.tmpl.Darwin
|
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
san_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
san_interceptors.cc
|
5ffafd8c9eece8453ea1434bb698b0c691954067 |
13-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Default visibility for __asan_handle_no_return. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150372 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
7bce450c1695dbef28ab7ccc5b0127b11a8557c7 |
13-Feb-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Fix a crash in GetCurrent() of an undead thread. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150371 91177308-0d34-0410-b5e6-96231b3b80d8
san_thread_registry.cc
|
b185687737fb687268cb1cd672c4e181907b68e1 |
13-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: fix path to FileCheck in makefiles git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150368 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
utput_tests/test_output.sh
|
e3b8cdfe80489814260b884b0b9a86c823d39bd6 |
13-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: move output tests to a separate directory git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150367 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
utput_tests/clone_test.cc
utput_tests/clone_test.tmpl
utput_tests/deep_tail_call.cc
utput_tests/deep_tail_call.tmpl
utput_tests/dlclose-test-so.cc
utput_tests/dlclose-test.cc
utput_tests/dlclose-test.tmpl
utput_tests/global-overflow.cc
utput_tests/global-overflow.tmpl
utput_tests/heap-overflow.cc
utput_tests/heap-overflow.tmpl
utput_tests/heap-overflow.tmpl.Darwin
utput_tests/large_func_test.cc
utput_tests/large_func_test.tmpl
utput_tests/match_output.py
utput_tests/null_deref.cc
utput_tests/null_deref.tmpl
utput_tests/null_deref.tmpl.Darwin
utput_tests/shared-lib-test-so.cc
utput_tests/shared-lib-test.cc
utput_tests/shared-lib-test.tmpl
utput_tests/stack-overflow.cc
utput_tests/stack-overflow.tmpl
utput_tests/stack-use-after-return.cc
utput_tests/stack-use-after-return.disabled
utput_tests/strncpy-overflow.cc
utput_tests/strncpy-overflow.tmpl
utput_tests/strncpy-overflow.tmpl.Darwin
utput_tests/test_output.sh
utput_tests/use-after-free.c
utput_tests/use-after-free.cc
utput_tests/use-after-free.tmpl
utput_tests/use-after-free.tmpl.Darwin
ests/clone_test.cc
ests/clone_test.tmpl
ests/deep_tail_call.cc
ests/deep_tail_call.tmpl
ests/dlclose-test-so.cc
ests/dlclose-test.cc
ests/dlclose-test.tmpl
ests/global-overflow.cc
ests/global-overflow.tmpl
ests/heap-overflow.cc
ests/heap-overflow.tmpl
ests/heap-overflow.tmpl.Darwin
ests/large_func_test.cc
ests/large_func_test.tmpl
ests/match_output.py
ests/null_deref.cc
ests/null_deref.tmpl
ests/null_deref.tmpl.Darwin
ests/shared-lib-test-so.cc
ests/shared-lib-test.cc
ests/shared-lib-test.tmpl
ests/stack-overflow.cc
ests/stack-overflow.tmpl
ests/stack-use-after-return.cc
ests/stack-use-after-return.disabled
ests/strncpy-overflow.cc
ests/strncpy-overflow.tmpl
ests/strncpy-overflow.tmpl.Darwin
ests/test_output.sh
ests/use-after-free.c
ests/use-after-free.cc
ests/use-after-free.tmpl
ests/use-after-free.tmpl.Darwin
|
3755a33a60265400e8fba9efa3a605acc3bdd6d8 |
13-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: Use FileCheck instead of grep for pure C output tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150366 91177308-0d34-0410-b5e6-96231b3b80d8
ests/test_output.sh
ests/use-after-free.c
|
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
san_allocator.cc
san_interceptors.cc
san_internal.h
san_rtl.cc
san_win.cc
|
339632e5156814d147e0461427f1388053f9fdfd |
09-Feb-2012 |
Timur Iskhodzhanov <timurrrr@google.com> |
Test commit + fix an obvious typo git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150184 91177308-0d34-0410-b5e6-96231b3b80d8
nterception/interception.h
|
5967c3de18a658e052c07a2af69f02823115655b |
09-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: move mach_override inside interception library git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150171 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.mk
akefile.old
nterception/Makefile.mk
nterception/interception_mac.cc
nterception/mach_override/LICENSE.TXT
nterception/mach_override/Makefile.mk
nterception/mach_override/README.txt
nterception/mach_override/mach_override.c
nterception/mach_override/mach_override.h
ach_override/LICENSE.TXT
ach_override/Makefile.mk
ach_override/README.txt
ach_override/mach_override.c
ach_override/mach_override.h
|
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
san_interceptors.cc
san_interface.h
san_rtl.cc
ests/clone_test.cc
ests/clone_test.tmpl
|
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
akefile.mk
akefile.old
san_interceptors.cc
san_interceptors.h
san_mac.cc
san_mac.h
san_malloc_mac.cc
nterception/Makefile.mk
nterception/interception.h
nterception/interception_linux.cc
nterception/interception_linux.h
nterception/interception_mac.cc
nterception/interception_mac.h
|
71d3b398a39663c771918747762142215a1dc87d |
08-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Move the _ReturnAddress definition out of the __asan:: namespace Patch by Timur Iskhodzhanov (timurrrr@google.com) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150075 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
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
san_allocator.cc
san_allocator.h
san_interceptors.cc
san_linux.cc
san_mac.cc
san_malloc_linux.cc
san_malloc_mac.cc
san_poisoning.cc
san_posix.cc
san_rtl.cc
san_stack.cc
san_stats.cc
|
a0935fa0ef02e47408996c25dac00b5f8a6b1406 |
08-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Typo fix: s/SNPrint/SNPrintf git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150069 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
27f4932a8a0845303b33d69ddce096c445002e60 |
08-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] better warning messages for double-free bugs (provide allocation/deallocation stack traces) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150027 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
ests/asan_test.cc
|
1c83ae34f32737a203c66e9d9c419f821a0db02f |
07-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] GET_CALLER_PC macro for Win. Patch by timurrrr@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149994 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
cce2c67658e01dcbecd39e016c3994d3f97bcdb1 |
07-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] print 'ALL TESTS PASSED' in makefile when running tests (convenience) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149990 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
160cc4aa34e2418ba91035bb49648e751476f0d9 |
07-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] don't crash if /proc/self/maps has enormous size (linux) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149944 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
|
f58f998066db0231e521169d2f50af439ceecb49 |
07-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] make sure the AsanThread object is destroyed if pthread_exit is called git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149940 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_thread.cc
san_thread.h
san_thread_registry.cc
ests/asan_test.cc
|
5ea4a76f88675993cd0c1cf73b1b5924ae7f6599 |
06-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] use raw syscalls for open/close on linux to avoid being intercepted git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149892 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
|
938b105aaa1ebb08b1ddacb2944b3caa3524a5a5 |
06-Feb-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] The first version of Windows malloc interceptors, patch by timurrrr@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149875 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_win.cc
|
f927ddc82f6fa71adfbea9110ef4c08c21bd72b8 |
03-Feb-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: simplify RoundUpToPowerOfTwo/clz; add a couple of CHECKs for real_X calls. Patch by timurrrr@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149687 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_poisoning.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
san_interceptors.cc
san_internal.h
san_malloc_linux.cc
san_rtl.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
san_interceptors.cc
san_interceptors.h
san_mac.cc
san_mac.h
san_malloc_linux.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
san_interceptors.cc
|
0503ce8824393174c17acb26d62551f18a0fd82a |
01-Feb-2012 |
Alexander Potapenko <glider@google.com> |
Disables testing memcpy() on Mac OS 10.7, where memcpy() in fact aliases memmove() and thus calling it with overlapping parameters is not an error. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149491 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
669f543c1400f7a1b9a48313d2f95e54f750bd4b |
31-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix the wrong __WORDSIZE definition on Win x64, add ASAN_INTERFACE_FUNCTION_ATTRIBUTE. Patch by timurrrr@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149395 91177308-0d34-0410-b5e6-96231b3b80d8
san_interface.h
san_internal.h
|
83c19fcacb6f2a3304ddb64b7e928a2e9c98a8d0 |
31-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] remove dead code git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149392 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_mac.cc
|
59dc578df0de177b44c8c78f69d73735e38e5c14 |
31-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Implement GetMacosVersion() to obtain the OS X version at runtime. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149382 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_mac.h
|
2a03ffece082439ea63331657c55248cbd0d15cf |
31-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] tests should not require the asan-rt to be built with debug info git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149330 91177308-0d34-0410-b5e6-96231b3b80d8
ests/heap-overflow.tmpl.Darwin
ests/strncpy-overflow.tmpl.Darwin
ests/use-after-free.tmpl.Darwin
|
cb00d134727c322e2f26298912f77e10be46aefe |
31-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] new run-time flag: sleep_before_dying (asan Issue #31) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149306 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_rtl.cc
ests/test_output.sh
|
c63a6c426842e0e9a24bd0ca954f7acb199fb537 |
31-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] re-enable the test for ObjC initialization bug git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149302 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_mac_test.mm
|
d271c926e0fa1b8fa9e4ca13f49f7d3ee07a27bc |
31-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix issue 35: don't let the optimizer to optimize the test code away. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149296 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_mac_test.mm
ests/asan_test.cc
|
9b993e8cd0f8964782ee93524603d0c53adc2249 |
30-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] ifdef/include cleanup git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149281 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_procmaps.h
|
3be19f4fa3519e358fd41a5feda82c39a22ef107 |
30-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] add a test for __attribute__ no_address_safety_analysis git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149278 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
858220837f85db7eb5eedd5ea68603803b5eb3c9 |
30-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] minor ifdef cleanup git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149274 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
|
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
san_interceptors.cc
san_interceptors.h
san_malloc_linux.cc
|
c9c9f3e6bcc9858e02dd8caf7cde2ee1675bac13 |
30-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Add a mask for "cmpb $imm, (%rdi)" on x86_64 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149245 91177308-0d34-0410-b5e6-96231b3b80d8
ach_override/mach_override.c
|
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
san_allocator.cc
san_interceptors.cc
san_interceptors.h
san_interface.h
san_internal.h
san_printf.cc
san_rtl.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
san_interceptors.cc
san_internal.h
|
0dfa6752c712c6467d46b21a0ca3431be9f47961 |
26-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Darwin-specific templates for the output tests. These should fix the output tests on Mac. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149068 91177308-0d34-0410-b5e6-96231b3b80d8
ests/heap-overflow.tmpl.Darwin
ests/null_deref.tmpl.Darwin
ests/strncpy-overflow.tmpl.Darwin
ests/use-after-free.tmpl.Darwin
|
00424110b4ae3d29cef6e635de9b32232b8d7270 |
26-Jan-2012 |
Alexander Potapenko <glider@google.com> |
More accurate atos execution which depends on the file type (EXECUTE, DYLIB) of the binary. More Linux-like output on Mac (to match more output tests). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149064 91177308-0d34-0410-b5e6-96231b3b80d8
cripts/asan_symbolize.py
|
ddf50a3e7a28c2ab12243e72b35ccf8c04f15b49 |
26-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Fix a bug in AsanProcMaps on Mac: on 64 bits the program was trying to read twice as many segment load commands as the binary actually contained. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149063 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_procmaps.h
|
f4cea8f6f935c874b97669c7ca9819a224b78b48 |
24-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Tune asan_symbolize.py to symbolize 64-bit binaries correctly. Add the DEBUG flag to test_output.sh git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148798 91177308-0d34-0410-b5e6-96231b3b80d8
cripts/asan_symbolize.py
ests/test_output.sh
|
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
san_interceptors.cc
san_interceptors.h
|
b19cfb271ea10ae2fac68a9b74256ad746ca5e51 |
23-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] test that -fno-optimize-sibling-calls helps to get sane stack traces git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148714 91177308-0d34-0410-b5e6-96231b3b80d8
ests/deep_tail_call.cc
ests/deep_tail_call.tmpl
ests/test_output.sh
|
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
san_interceptors.cc
san_mac.cc
san_mac.h
ests/asan_test.cc
|
fb506cb56c7f47a9f0aa515d6f5ca3ed6533422f |
23-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Add a test for CFStringCreateCopy. Normally this function should not create copies of constant strings, but it does when the default CFAllocator is replaced (e.g. under AddressSanitizer) This test is related to http://code.google.com/p/address-sanitizer/issues/detail?id=10 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148695 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
4242e6aff9848be2af0ff70f15e94c74b27cd001 |
19-Jan-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Make the Android TSD workaround more reliable. By scanning the thread list backwards. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148476 91177308-0d34-0410-b5e6-96231b3b80d8
san_thread_registry.cc
|
8de79a06f19a15466af338dbd744059e6edd76d6 |
19-Jan-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Workaround the self-cleaning TSD on Android. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148475 91177308-0d34-0410-b5e6-96231b3b80d8
san_thread_registry.cc
|
01ef925fcd338958c67eed9c444f9c0c98d7bb42 |
19-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Remove a debugging Report() call. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148474 91177308-0d34-0410-b5e6-96231b3b80d8
san_procmaps.h
|
3feef82eab6d5f0ace384a670bfb5988e0c165a0 |
19-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Minor fixes of the AsanProcMaps code on Mac: -- make the load command scan linear (instead of quadratic) -- do not create a nested AsanProcMaps instance for each address lookup -- more comments git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148472 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_procmaps.h
|
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
san_interceptors.cc
san_linux.cc
san_mac.cc
san_posix.cc
san_rtl.cc
san_stack.cc
san_stack.h
|
ca2278dacaf75a6c45473d962a331181883df02c |
18-Jan-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: return false instead of true for __asan_get_ownership(NULL) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148394 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_interface.h
ests/asan_interface_test.cc
|
1d483d4e933705971ff6285522fb5aecfb8a2e20 |
18-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Delete sysinfo/* and all references to it. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148386 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.mk
akefile.old
EADME.txt
san_internal.h
san_stack.cc
ysinfo/LICENSE.TXT
ysinfo/Makefile.mk
ysinfo/basictypes.h
ysinfo/sysinfo.cc
ysinfo/sysinfo.h
|
8a34d384255f9bf4c2a9b03a4df81b9af57124d8 |
18-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Implement AsanProcMaps for Mac OS. The code from sysinfo/ is not needed anymore and should be cleaned up. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148385 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_procmaps.h
|
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
san_interceptors.cc
ests/asan_test.cc
|
454a064850f5a9133af50a3d5f79f74adfb3d0d0 |
17-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] fix ReadFileToBuffer to correctly handle files from /proc/ (asan issue 27) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148311 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
6677def188c17ac63866146d72c4b1b652649fc6 |
17-Jan-2012 |
Alexey Samsonov <samsonov@google.com> |
Revert commit 148304 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148305 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_interface.h
ests/asan_interface_test.cc
ests/asan_test.cc
|
c7cdcdacd485056c12efc368f7ea2a6db64831e8 |
17-Jan-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: from this patch, ASan allocator returns false for __asan_get_ownership(NULL) and produce error reports for malloc_usable_size(NULL) and __asan_get_allocated_size(NULL) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148304 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_interface.h
ests/asan_interface_test.cc
ests/asan_test.cc
|
1346ced2eb8d10305e8d98496d9006cfbbad1548 |
17-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Define the bounds of the branch allocator memory space for 32-bit apps. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148303 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
|
4fd95f141f78906570c15a8a3b4cf0a7b50a201d |
17-Jan-2012 |
Alexey Samsonov <samsonov@google.com> |
AddressSanitizer: add support for malloc_usable_size() function git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148287 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_allocator.h
san_linux.cc
san_malloc_linux.cc
san_malloc_mac.cc
ests/asan_interface_test.cc
ests/asan_test.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
san_interceptors.cc
san_mac.cc
san_stack.h
san_thread.cc
san_thread.h
san_thread_registry.cc
san_thread_registry.h
|
92bda94d7bd042ee2f3e1a9ccc0e0fec7797a200 |
16-Jan-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
[asan] Implement GetObjectNameAndOffset on ARM. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148236 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.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
san_interceptors.cc
san_mac.cc
san_mac.h
ests/asan_test.cc
|
7274eafceb832e1088f30b71652992787ba8c456 |
16-Jan-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Disable posix_memalign test on Android. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148234 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.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
san_interceptors.cc
san_mac.cc
san_mac.h
|
d5be6c1fc58f87910f05cec63bfe1bdc4ee8e61a |
13-Jan-2012 |
Alexander Potapenko <glider@google.com> |
Add __asan_mach_override_ptr_custom, which allows to inject a custom memory allocator into mach_override_ptr(). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148115 91177308-0d34-0410-b5e6-96231b3b80d8
ach_override/mach_override.c
ach_override/mach_override.h
|
1e316d7f488a75312539629e9d937e156280eeb6 |
13-Jan-2012 |
Alexander Potapenko <glider@google.com> |
This patch moves the code reading /proc/self/environ into AsanGetEnv in asan_linux.cc, because /proc is unavailable on Mac. Instead the Mac version of AsanGetEnv iterates over the array of environment variables obtained from _NSGetEnviron() git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148114 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
|
8bcc6b93abafee3cb15e20fda0f1e1d4967bb80e |
11-Jan-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Call asan_init from .preinit_array. Protected by an #ifdef, disabled by default. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147932 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
a31df5ca61f10154c809d4aa77978628c0c74f76 |
11-Jan-2012 |
Alexey Samsonov <samsonov@google.com> |
Test commit. Minor cleanup in AsanThread git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147930 91177308-0d34-0410-b5e6-96231b3b80d8
san_thread.cc
|
dde7c33df06a9a0a8056f2357d764a10512206ee |
11-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] remove OS-dependent headers from asan_internal.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147919 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.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
san_interceptors.cc
san_interceptors.h
san_rtl.cc
|
cc4e6862c6a8f8f3ead96bd32b815184a36faded |
11-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] move TSD code into asan_posix.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147913 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_posix.cc
san_thread_registry.cc
san_thread_registry.h
|
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
san_interceptors.cc
san_mac.cc
san_thread.cc
san_thread_registry.cc
san_thread_registry.h
|
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
san_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
san_interceptors.cc
san_linux.cc
san_lock.h
san_mac.cc
san_thread_registry.cc
|
0ecf5eb729dd81a43f8585cb438d3cb2a35899ed |
10-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] don't include unistd.h in the headers git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147811 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_posix.cc
san_printf.cc
san_rtl.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
san_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
san_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
san_interceptors.cc
san_interceptors.h
san_rtl.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
san_interceptors.cc
san_stack.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
san_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
san_interceptors.cc
san_interceptors.h
|
a7e760a53bc43b8e09bfdf5cd6f215267ba99729 |
09-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] refactoring: move some common linux/mac code to asan_posix.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147788 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_internal.h
san_linux.cc
san_mac.cc
san_posix.cc
san_rtl.cc
san_thread.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
san_interceptors.cc
san_interceptors.h
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
|
a6b52264e1231bfc4ee9a2d9a4f32678c97295f0 |
06-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] do not use new/delete for the internal thread structure git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147674 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_rtl.cc
san_thread.cc
san_thread.h
san_thread_registry.cc
|
9107c26bd88fc9cf44a2cd7d6967eb830ac63be3 |
06-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] move more code into OS-specific files git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147671 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
|
26c1596c6824925908b0a9d3b37d6ac340409b13 |
06-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] cleanup: remove the SIGILL-related code (rt part) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147665 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_rtl.cc
|
ef14ff6512d7b2e20aa3206dff820b5f90285420 |
06-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] move more stuff to OS-specific files git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147647 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
|
efb3fa36cf421c346e8e54054cdae4fd798edab7 |
06-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] use dl_iterate_phdr for pre-symbolization on linux instead of parsing /proc/self/maps git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147628 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_procmaps.h
san_stack.cc
|
c549dd7b5fa5fb97270f57067797224cee0429f2 |
05-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] move {linux,mac}-specific code from asan_thread.cc to asan_{linux,mac}.cc; also add asan_procmaps.h which I forgot to add on previous commit. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147586 91177308-0d34-0410-b5e6-96231b3b80d8
san_linux.cc
san_mac.cc
san_procmaps.h
san_thread.cc
|
df499b44de81fc757a789878f07fcaf19ebb0016 |
05-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] implement our own /proc/self/maps reader and use it on linux instead of sysinfo.h git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147581 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_internal.h
san_linux.cc
san_printf.cc
san_rtl.cc
san_stack.cc
san_thread.cc
|
609dc28bb32bdba7533c191bcb88f358d0f42187 |
04-Jan-2012 |
Kostya Serebryany <kcc@google.com> |
[asan] remove objdump-based tests in favour of much simpler LLVM-ish tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147514 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
89a4a18118c2a123d1a89aa711fad518e6da857b |
29-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] build asan-rt with -funwind-tables git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147341 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
4558168b361d59be9cc5510b72bb0de9ca795c3a |
29-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] force the __asan_unregister_globals to reside in the runtime library git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147329 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
a874fe5b5d67152e4e737498d532eec80940bdcd |
29-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] refactoring: don't #include <sys/mman.h> in non-os-specific files git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147328 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_internal.h
san_linux.cc
san_mac.cc
san_rtl.cc
san_thread.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
san_allocator.cc
san_interceptors.cc
san_interceptors.h
san_internal.h
san_linux.cc
san_mac.cc
san_printf.cc
san_rtl.cc
|
07c5cdab82b0d7e476542e387c31a39c09ada441 |
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] missing PTHREAD_DESTRUCTOR_ITERATIONS on Android. patch by eugeni.stepanov@gmail.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147322 91177308-0d34-0410-b5e6-96231b3b80d8
san_thread_registry.cc
|
ab9da7ec5e4194ba0d0a90e00e9f29dbc8d34c69 |
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] discover main thread stack limits without pthread. patch by eugeni.stepanov@gmail.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147321 91177308-0d34-0410-b5e6-96231b3b80d8
san_thread.cc
|
6413ec3de37304f657adb36d6cd58e4919dba231 |
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] no ucontext on Android. patch by eugeni.stepanov@gmail.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147320 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
0ffe35c08475334243f760128c5b4b987e5a274b |
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] enable memset/memcpy/memmove interceptors in asan-rt (in addition to those in the compiler module) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147319 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
san_stack.cc
ests/asan_test.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
san_interceptors.cc
ests/asan_test.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
san_interceptors.cc
san_interceptors.h
ach_override/mach_override.c
ests/asan_test.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
san_interceptors.cc
san_interceptors.h
san_stack.cc
ests/asan_test.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
san_interceptors.cc
san_interceptors.h
ests/asan_test.cc
|
c695a47beeac6ab4ce48e4b33b2ba04869ef0269 |
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
The code instrumented with ASan may have its own instance of the mach_override library. In this case chances are that functions from it will be called from mach_override_ptr() during ASan initialization. This may lead to crashes (if those functions are instrumented) or incorrect behavior (if the implementations differ). The attached patch renames mach_override_ptr() into __asan_mach_override_ptr() and makes the rest of the mach_override internals hidden. The corresponding AddressSanitizer bug is http://code.google.com/p/address-sanitizer/issues/detail?id=22 Patch by glider@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147303 91177308-0d34-0410-b5e6-96231b3b80d8
san_interceptors.h
ach_override/README.txt
ach_override/mach_override.c
ach_override/mach_override.h
|
51e75c45a6886455a5bdb91c0951bc77dd2c47a2 |
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] make sure __asan_report_* functions are not inlined (so that they are not optimized away and are kept in the resulting library). Patch by glider@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147302 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
8547f6c368c964f0c3e60cf23383a42e5ba806cb |
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] remove the test for cfree. 'man cfree' says: 'This function should never be used.' and this function is not found on many OSes we support. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147301 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
9a20026e3c5ee0e0ae423aea259489ccce9ff19a |
28-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
new() has slightly different signature on Android. This patch adds the git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147300 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
13ebae606b526399771e9cca1d6a9d24458ad0f1 |
27-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] rely on __has_feature(address_sanitizer) instead of the ADDRESS_SANITIZER macro git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147297 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_interface.h
san_internal.h
ests/asan_test.cc
|
4df3f6690cb01a9925d61d9b33524af0b764b4be |
27-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] make sure frame pointers are not omitted when running asan output tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147293 91177308-0d34-0410-b5e6-96231b3b80d8
ests/test_output.sh
|
69eca73ac96688c8bfe1f23ee006af29c7858c40 |
16-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
Recently the GCD tests started failing because of the invalid size of FakeStack on the worker threads. This patch moves the AsanThread initialization into a separate procedure that's called when AsanThread objects are called for worker threads. Patch by glider@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146752 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
san_thread.cc
san_thread.h
|
f32b41d3a0b52e9373abbe76c17b48b67633aefa |
16-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] revert r146529: we do need to build asan-rt as a shared library. Will need to find a different way to modify preinit_array git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146703 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_rtl.cc
|
c37ca572876a585b6a910f14a85cc7ba7fc22f20 |
15-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] added a test to check that a global-buffer-overflow mentioned the module name; revert incorrect change in the test runner git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146701 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
ests/test_output.sh
|
c491061eddb0bb7047470b2746cbcbfe7730b2a9 |
15-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] fix a bug (issue 19) where dlclose and the following mmap caused a false positive. run-time part. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146687 91177308-0d34-0410-b5e6-96231b3b80d8
san_globals.cc
san_interface.h
ests/dlclose-test.tmpl
ests/shared-lib-test.cc
ests/test_output.sh
|
d11a9639388defed6a26dd5e76932246bbe505ef |
15-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] regression test for asan issue 19, currently fails. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146681 91177308-0d34-0410-b5e6-96231b3b80d8
ests/dlclose-test-so.cc
ests/dlclose-test.cc
|
6b30e2cf0d9d471d276f91ef4bb74dbd9876f4d9 |
15-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] poison the internal asan heap memory, just in case. Change Printf to Report when debugging globals. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146663 91177308-0d34-0410-b5e6-96231b3b80d8
san_globals.cc
san_internal.h
san_rtl.cc
|
a5f10b95d578d8fc4d05c757273127382153b21e |
14-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] insert __asan_init into ".preinit_array" section. Linux-only. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146529 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_rtl.cc
|
381b170aca88ed95f0521dd32e96496c0efd5693 |
14-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] fix the test runner to detect build breakages; add a test for -pie git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146528 91177308-0d34-0410-b5e6-96231b3b80d8
ests/test_output.sh
|
9c69e8709965244810dd1f63c133fb1fd07c494d |
14-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] fix some more format warnings in sysinfo/sysinfo.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146526 91177308-0d34-0410-b5e6-96231b3b80d8
ysinfo/sysinfo.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
san_allocator.cc
san_interceptors.cc
ests/asan_test.cc
|
332bfbf29cd49352f808d7be0807b46134e4a4a4 |
09-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] fix asan-rt interceptors on Snow Leopard. Patch by glider@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146263 91177308-0d34-0410-b5e6-96231b3b80d8
ach_override/mach_override.c
|
c4b34d9af5a7849f91b9a9ba418a2bd144b0812b |
09-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] make use-after-return mode more robust: allow to call instrumented functions while reporting an error git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146231 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_allocator.h
san_rtl.cc
|
5009caa6e3063ce8343fa7b462ee778df02523e7 |
09-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] fix output test to not require debug symbols in asan run-time git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146212 91177308-0d34-0410-b5e6-96231b3b80d8
ests/heap-overflow.tmpl
ests/strncpy-overflow.tmpl
ests/use-after-free.tmpl
|
918b18a849cea679bff31a4e0dfb3745302c240a |
09-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] better test for use-after-return mode git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146203 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_test.cc
|
6bbdc46fd383c1074b48ba5b48fcfc415d1574ae |
08-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] fresh version of mach_override; added mach_override/README.txt. Patch by glider@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146166 91177308-0d34-0410-b5e6-96231b3b80d8
ach_override/README.txt
ach_override/mach_override.c
|
cd79cc0ac015c7ea6e164421919e8441d13f1e43 |
08-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] update the soon-to-be-depricated asan makefile to use the new path for asan-rt (affects only linux) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146162 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
c6f2223a8772262e5e682403f2d57f0b465a98fc |
08-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] move build-time config options from makefile to source (otherwise we need config options in all makefiles) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146161 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_rtl.cc
san_stack.cc
|
acd5c617b219e0f059620c2a3928d2cc821d4534 |
07-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] fix the error message for 16-byte accesses (it previously printed 'unknown-crash') git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146075 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
ests/asan_test.cc
|
dd8d4981e149fd32b83406fae2dc42216c771f79 |
06-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] minor cleanup git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145966 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
san_rtl.cc
|
96bdefaabcd9ed4cb3401f5fbfb51fd964e03f5a |
06-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] GCD tests on Mac: prevent optimization and enable. Patch by glider@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145953 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_mac_test.mm
ests/asan_test.cc
|
347483ca85193fb31946f6f1c2affb2bedda0096 |
06-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] remove format warnings in sysinfo/sysinfo.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145886 91177308-0d34-0410-b5e6-96231b3b80d8
ysinfo/sysinfo.cc
|
0b4c09b313580cfed9e1f3a2dc2f383dc870caa3 |
05-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan]: test a pure C file with -faddress-sanitizer; lint fixes git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145848 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
ests/asan_exceptions_test.cc
ests/test_output.sh
|
f45c19578801a33c8518ffc95ecb17d92f38c9eb |
05-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] add the test for bug 11468 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145839 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_exceptions_test.cc
|
30743140ff0f904b7f422b61d208e2837e7c631e |
05-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] always collect malloc statstics (removed FLAG_stats) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145838 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_interface.h
san_internal.h
san_rtl.cc
san_stats.cc
ests/asan_interface_test.cc
ests/asan_noinst_test.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
san_interceptors.cc
|
b3010e75d1c88b6f2084c80530e06ffe8d6f19a2 |
05-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] don't require __cxa_throw to be present in the process. This is the last dependency on libstdc++ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145821 91177308-0d34-0410-b5e6-96231b3b80d8
san_interceptors.h
san_rtl.cc
|
75f74616d227a158539a5cc23ea8282142623159 |
03-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] get rid of some more dependency on libstdc++ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145743 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_stats.cc
|
f48d64bb5739d3ce9e7940c619a33e1ca0bf6f98 |
03-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] micro-benchmark for use-after-return fake stack git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145739 91177308-0d34-0410-b5e6-96231b3b80d8
ests/asan_benchmarks_test.cc
|
3404b3f0a4855164c82965ccaf299d04d2b5db81 |
03-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] put back -O2 which was lost quite some time ago and caused noticeable perf drop in malloc-intensive apps. doh. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145723 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
|
b89567ce41bef82cf92a9c741c78b632c07b2781 |
02-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] get rid of std::map. No STL and almost no libstdc++ left. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145706 91177308-0d34-0410-b5e6-96231b3b80d8
san_globals.cc
san_internal.h
san_rtl.cc
|
1957399c5d44802939021d5b89b8171719d96b75 |
02-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] quick fix for mac build, second attempt. Sorry for spam. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145694 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.cc
|
4f24d3efb98fcf2b4d667bd42a4d840dbab0ce82 |
02-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] quick fix for mac build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145692 91177308-0d34-0410-b5e6-96231b3b80d8
san_mac.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
san_allocator.cc
san_interceptors.cc
san_internal.h
san_mac.cc
san_poisoning.cc
san_rtl.cc
|
f06648acf50b17b4a90abb46eb4515947f96fecd |
02-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
build: Add ModuleName per-subdir variable as a way to organize the different sets of functions/objects into high level groups. Currently we have "builtins" (the main compiler-rt code), "profile", and "asan". - Use this to define CommonFunctions and ArchFunctions to only reference the builtins functions. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145674 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.mk
ach_override/Makefile.mk
ysinfo/Makefile.mk
|
514cebb99d5e45f1bbbb33cfa41a20a6434258b6 |
02-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
lib/asan: Fix possible type mismatches. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145664 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
|
4616633bb9e20f66d83bfac70c9afce1922d1eec |
02-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
lib/asan: Attempt to ensure __WORDSIZE gets defined, it is not always set by Darwin's stdint.h for example. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145663 91177308-0d34-0410-b5e6-96231b3b80d8
san_internal.h
|
0d4e17c56a3daf70061c613b4020472312d77610 |
02-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
add/update LICENSE.TXT files for the third_party code used by asan git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145659 91177308-0d34-0410-b5e6-96231b3b80d8
ach_override/LICENSE.TXT
ysinfo/LICENSE.TXT
|
7855275763348a191f88cf2c741618785d62fde7 |
02-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
build/asan: Better fix for ASAN i386 build on Darwin, this causes us to see the non-standard struct names. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145658 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
fe18082eb32b4b8a9b9bee1f252fc9e7791aab2a |
02-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
build/asan: Fix ASAN build for i386, for reasons I don't really understand we get the DARWIN_UNIX03 definition on x86_64 but not on i386. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145657 91177308-0d34-0410-b5e6-96231b3b80d8
san_rtl.cc
|
cc080e5c0bac825d72b8928a2235716b0344ac43 |
02-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
asan: Fill in integration with compiler-rt/make build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145648 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.mk
ach_override/Makefile.mk
ysinfo/Makefile.mk
|
21e8dce9f9a7373b8d7364596ec1117718df04f5 |
02-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
asan: Suppress a -Wbitwise-op-parentheses. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145647 91177308-0d34-0410-b5e6-96231b3b80d8
ach_override/mach_override.c
|
c1ef2a0b8022f200f8bbb36641df866c4369876d |
02-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
asan: #if 0 out some unused functions (we build with -Werror). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145645 91177308-0d34-0410-b5e6-96231b3b80d8
san_malloc_mac.cc
|
d6567c5166412f6acdde851e767c26f332d51d3d |
01-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] flatten the asan-rt build slightly git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145631 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_internal.h
san_linux.cc
san_mac.cc
san_mac.h
san_malloc_linux.cc
san_malloc_mac.cc
san_rtl.cc
ach_override/mach_override.c
ach_override/mach_override.h
|
b09f0aa7c724bb45483e98076127ef3df6376e36 |
30-Nov-2011 |
Kostya Serebryany <kcc@google.com> |
test asan at -O0 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145532 91177308-0d34-0410-b5e6-96231b3b80d8
ests/test_output.sh
|
218a9b70d7338cf5b727b7dad6b080ad7869c6c2 |
30-Nov-2011 |
Kostya Serebryany <kcc@google.com> |
Refactor shadow poisoning done by asan-rt, no funtionality changes; patch by samsonov@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145505 91177308-0d34-0410-b5e6-96231b3b80d8
san_allocator.cc
san_globals.cc
san_internal.h
san_mapping.h
san_poisoning.cc
san_rtl.cc
|
cbab911ea555f34c8ac66b4c7dc88f4e7ecf2c03 |
30-Nov-2011 |
Kostya Serebryany <kcc@google.com> |
fix asan-rt build on Mac. Patch by glider@google.com git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145496 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.old
san_allocator.h
san_interceptors.h
|
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
akefile.mk
akefile.old
EADME.txt
san_allocator.cc
san_allocator.h
san_globals.cc
san_interceptors.cc
san_interceptors.h
san_interface.h
san_internal.h
san_linux.cc
san_lock.h
san_mac.cc
san_mac.h
san_malloc_linux.cc
san_malloc_mac.cc
san_mapping.h
san_poisoning.cc
san_printf.cc
san_rtl.cc
san_stack.cc
san_stack.h
san_stats.cc
san_stats.h
san_thread.cc
san_thread.h
san_thread_registry.cc
san_thread_registry.h
ach_override/mach_override.c
ach_override/mach_override.h
cripts/asan_symbolize.py
ysinfo/basictypes.h
ysinfo/sysinfo.cc
ysinfo/sysinfo.h
ests/asan_benchmarks_test.cc
ests/asan_break_optimization.cc
ests/asan_globals_test.cc
ests/asan_interface_test.cc
ests/asan_mac_test.h
ests/asan_mac_test.mm
ests/asan_noinst_test.cc
ests/asan_test.cc
ests/asan_test.ignore
ests/asan_test_config.h
ests/asan_test_utils.h
ests/global-overflow.cc
ests/global-overflow.tmpl
ests/heap-overflow.cc
ests/heap-overflow.tmpl
ests/heap-overflow.tmpl.Darwin
ests/large_func_test.cc
ests/large_func_test.tmpl
ests/match_output.py
ests/null_deref.cc
ests/null_deref.tmpl
ests/shared-lib-test-so.cc
ests/shared-lib-test.cc
ests/shared-lib-test.tmpl
ests/stack-overflow.cc
ests/stack-overflow.tmpl
ests/stack-use-after-return.cc
ests/stack-use-after-return.disabled
ests/strncpy-overflow.cc
ests/strncpy-overflow.tmpl
ests/test_output.sh
ests/use-after-free.c
ests/use-after-free.cc
ests/use-after-free.tmpl
|