Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [asan] fix linux build | Kostya Serebryany | 2013-01-21 | 1 | -9/+9 | |
| | | | | llvm-svn: 173049 | |||||
* | [ASan] Move Mac-specific tests to asan_mac_test.cc | Alexander Potapenko | 2013-01-21 | 4 | -232/+249 | |
| | | | | llvm-svn: 173048 | |||||
* | CMake: generalize checking for target availability and add initial support ↵ | Alexey Samsonov | 2013-01-21 | 1 | -6/+3 | |
| | | | | | | for PowerPC native arch. With this patch, building LLVM on PowerPC native arch produces a working ASan runtime. llvm-svn: 173044 | |||||
* | Fixup for r173021: build tests with zero-based shadow on Android only, fix ↵ | Alexey Samsonov | 2013-01-21 | 2 | -4/+4 | |
| | | | | | | condition in checking for shadow gap in asan_mapping.h llvm-svn: 173026 | |||||
* | ASan: build unit tests with -fsanitize-address-zero-base-shadow on Linux and ↵ | Alexey Samsonov | 2013-01-21 | 2 | -18/+29 | |
| | | | | | | Android llvm-svn: 173021 | |||||
* | CMake: create AddCompilerRT module and implement convenience ↵ | Alexey Samsonov | 2013-01-18 | 1 | -1/+0 | |
| | | | | | | add_compiler_rt_object_library function llvm-svn: 172826 | |||||
* | CMake variables renaming: X86_64->x86_64 I386->i386 | Alexey Samsonov | 2013-01-18 | 1 | -2/+3 | |
| | | | | llvm-svn: 172812 | |||||
* | [ASan] fixes for Android build | Alexey Samsonov | 2013-01-18 | 2 | -3/+3 | |
| | | | | llvm-svn: 172800 | |||||
* | [sanitizer] reapply r172719, r172721-172723, r172725, and also fix the ↵ | Kostya Serebryany | 2013-01-18 | 1 | -30/+16 | |
| | | | | | | warning on Mac. llvm-svn: 172791 | |||||
* | Revert r172719, r172721-172723, and r172725. | Jakob Stoklund Olesen | 2013-01-17 | 1 | -16/+30 | |
| | | | | | | | | | | | | | | | | | | The r172719 patch broke the build on Mac, the others depended on it. compiler-rt/lib/asan/asan_interceptors.cc:78:13: error: unused function 'SetThreadName' [-Werror,-Wunused-function] static void SetThreadName(const char *name) { Orignal headlines: [asan] attempting to fix the Mac build [asan] restructure read/pread/pread64 tests [sanitizer] move write/pwrite/pwrite64 interceptors to common [msan] start using common interceptors in msan [tsan] move prctl interceptor from asan to common_interceptors thus enabling it for tsan too llvm-svn: 172763 | |||||
* | ASan: Allow __asan_get_allocated_size(malloc(0)) to be 0 or 1 | Alexey Samsonov | 2013-01-17 | 1 | -1/+2 | |
| | | | | llvm-svn: 172726 | |||||
* | [asan] restructure read/pread/pread64 tests | Kostya Serebryany | 2013-01-17 | 1 | -30/+16 | |
| | | | | llvm-svn: 172723 | |||||
* | [ASan] fix __asan_get_ownership(p) and __asan_get_allocated_size(p) for the ↵ | Alexey Samsonov | 2013-01-17 | 1 | -1/+9 | |
| | | | | | | p = malloc(0) llvm-svn: 172717 | |||||
* | Move large part of asan_test_utils.h to sanitizer_common. | Evgeniy Stepanov | 2013-01-14 | 3 | -78/+16 | |
| | | | | | | | | | Move my_rand() to the common header. This lets us avoid the use of rand_r in sanitizer_common tests. There is no rand_r on Android. llvm-svn: 172421 | |||||
* | ASan: Disable alloc/dealloc mismatch test on Android. It's not supposed to ↵ | Alexey Samsonov | 2013-01-14 | 1 | -4/+4 | |
| | | | | | | work there llvm-svn: 172398 | |||||
* | ASan: Disable alloc/dealloc-mismatch checker on Mac for now (it produces ↵ | Alexey Samsonov | 2013-01-14 | 1 | -3/+5 | |
| | | | | | | weird false positives on googletest) llvm-svn: 172394 | |||||
* | [asan] don't fail the test if prctl(PR_SET_NAME) is not supported | Kostya Serebryany | 2013-01-10 | 1 | -13/+24 | |
| | | | | llvm-svn: 172059 | |||||
* | [asan] asan_allocator2: do less work under the quarantine lock; make the ↵ | Kostya Serebryany | 2013-01-10 | 1 | -3/+4 | |
| | | | | | | strcasecmp test more resistant to the contents of unaddressable memory llvm-svn: 172048 | |||||
* | [asan] better protect the tests from memset/memcpy inlining, explicitly ↵ | Kostya Serebryany | 2013-01-10 | 1 | -25/+27 | |
| | | | | | | include unistd.h llvm-svn: 172045 | |||||
* | [asan] make LargeOOBInMemset test resistant to clever compiler optimizations | Kostya Serebryany | 2012-12-29 | 1 | -3/+4 | |
| | | | | llvm-svn: 171223 | |||||
* | [asan] fix a build warning | Kostya Serebryany | 2012-12-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 171200 | |||||
* | [asan] implement more strict checking for memset/etc parameters. Instead of ↵ | Kostya Serebryany | 2012-12-28 | 2 | -3/+87 | |
| | | | | | | checking the first and the last byte, we check the entire shadow region. This costs ~10 slowdown for the instrumented functions. Motivated by a nasty memset-buffer-overflow-by-140-bytes in chrome which was reported as a use-after-free or not at all llvm-svn: 171198 | |||||
* | Define COMPILER_RT_CAN_EXECUTE_TESTS variable on platforms where we can ↵ | Alexey Samsonov | 2012-12-27 | 1 | -5/+1 | |
| | | | | | | produce working binaries and use it in build rules for sanitizers tests llvm-svn: 171160 | |||||
* | [asan] asan_allocator2: do not align the requested size to the redzone size ↵ | Kostya Serebryany | 2012-12-26 | 1 | -1/+1 | |
| | | | | | | (saves a bit more memory) llvm-svn: 171111 | |||||
* | [asan] asan_allocator2: implement adaptive redzones. Now with ↵ | Kostya Serebryany | 2012-12-26 | 1 | -3/+5 | |
| | | | | | | asan_allocator2 allocations <= 48 bytes have 16 byte redzone, allocations of 48-96 bytes -- have 32 bytes redzone, etc (max redzone is 2048). If ASAN_OPTIONS=redzone=n is set, it changes the minimal redzone size llvm-svn: 171107 | |||||
* | [asan] add a test for right OOB with special large sizes. Fix this test in ↵ | Kostya Serebryany | 2012-12-25 | 2 | -1/+19 | |
| | | | | | | asan_allocator2. More test tweaking for allocator2 llvm-svn: 171058 | |||||
* | [asan] properly define ASAN_LOW_MEMORY. Due to a mistake it has been always ↵ | Kostya Serebryany | 2012-12-25 | 1 | -1/+3 | |
| | | | | | | true causing redzone and quarantine sizes to be smaller than it was some time before (and out of sync with the documentation). Also make one test less greedy llvm-svn: 171052 | |||||
* | [sanitizer] fix gcc warnings, enable one tests under asan_allocator2 | Kostya Serebryany | 2012-12-24 | 1 | -2/+0 | |
| | | | | llvm-svn: 171036 | |||||
* | [Sanitizer] CMake build rules for unittests: depend on headers when ↵ | Alexey Samsonov | 2012-12-21 | 1 | -0/+6 | |
| | | | | | | compiling a file with custom clang. llvm-svn: 170897 | |||||
* | [Sanitizer] Don't implicitly add object files to the list of dependencies ↵ | Alexey Samsonov | 2012-12-21 | 1 | -1/+1 | |
| | | | | | | when building compiler_rt unittests. Fix sanitizer_common and asan build rules accordingly. This also fixes check-sanitizer command on Ninja. llvm-svn: 170870 | |||||
* | [asan] add a flag alloc_dealloc_mismatch (off by default for now) which ↵ | Kostya Serebryany | 2012-12-21 | 2 | -12/+34 | |
| | | | | | | finds malloc/delete, new/free, new/delete[], etc mismatches llvm-svn: 170869 | |||||
* | Clean up some warnings that become errors. Seen in Xcode. | Richard Relph | 2012-12-21 | 2 | -7/+7 | |
| | | | | llvm-svn: 170843 | |||||
* | [asan] asan_allocator2: implement memalign | Kostya Serebryany | 2012-12-20 | 1 | -0/+2 | |
| | | | | llvm-svn: 170697 | |||||
* | [asan] add memalign tests | Kostya Serebryany | 2012-12-20 | 1 | -4/+21 | |
| | | | | llvm-svn: 170687 | |||||
* | [asan] asan_allocator2: make all remaining tests pass. | Kostya Serebryany | 2012-12-20 | 1 | -0/+23 | |
| | | | | llvm-svn: 170680 | |||||
* | [asan] add ASAN_PCRE_DOTALL to two new multi-line regexps | Kostya Serebryany | 2012-12-20 | 1 | -2/+2 | |
| | | | | llvm-svn: 170677 | |||||
* | [ASan] don't use -fsanitize=address linker flag for unit tests on Android | Alexey Samsonov | 2012-12-20 | 1 | -3/+9 | |
| | | | | llvm-svn: 170670 | |||||
* | [ASan] explicitly link with dynamic ASan runtime when building unittests on ↵ | Alexey Samsonov | 2012-12-19 | 1 | -1/+1 | |
| | | | | | | Android llvm-svn: 170552 | |||||
* | [ASan] Support building both 32- and 64-bit unit tests if we can target both ↵ | Alexey Samsonov | 2012-12-19 | 1 | -35/+39 | |
| | | | | | | architectures llvm-svn: 170549 | |||||
* | [ASan] make sure Android unittests depend on ASan runtime | Alexey Samsonov | 2012-12-19 | 1 | -0/+2 | |
| | | | | llvm-svn: 170543 | |||||
* | Significantly change the way we build ASan unittests in CMake | Alexey Samsonov | 2012-12-19 | 1 | -95/+91 | |
| | | | | | | | | | | | | | | | build tree. Now just-built Clang is used to: 1) compile instrumented sources (as before); 2) compile non-instrumented sources; 3) compile our own instrumented version of googletest; 4) link it all together using -fsanitize=address flag (instead of trying to copy linker behavior in CMake build rules). This makes ASan unittests pretty much self-consistent and independent of other LLVM libraries. llvm-svn: 170541 | |||||
* | [ASan] Change the boilerplate check in the libdispatch tests to fix them. | Alexander Potapenko | 2012-12-19 | 1 | -8/+11 | |
| | | | | llvm-svn: 170531 | |||||
* | [ASan] more macro for conditional interception of pread functions | Alexey Samsonov | 2012-12-13 | 1 | -2/+2 | |
| | | | | llvm-svn: 170112 | |||||
* | [ASan] Fix test expectations for strcat/strncat. | Alexander Potapenko | 2012-12-12 | 1 | -4/+13 | |
| | | | | llvm-svn: 169987 | |||||
* | [ASan] Enhance OOB tests to check for access type (read or write). | Alexander Potapenko | 2012-12-12 | 1 | -104/+122 | |
| | | | | llvm-svn: 169974 | |||||
* | [asan] fix android build and lint | Kostya Serebryany | 2012-12-12 | 1 | -3/+5 | |
| | | | | llvm-svn: 169968 | |||||
* | [asan] add sanitizer_common/sanitizer_common_interceptors.h with ↵ | Kostya Serebryany | 2012-12-12 | 1 | -0/+42 | |
| | | | | | | pread/pread64/read interceptors. Use it in asan. Add asan tests for pread/etc. Add FIXME to tsan/msan interceptors llvm-svn: 169966 | |||||
* | [asan] make ThreadNamesTest more flexible | Kostya Serebryany | 2012-12-11 | 1 | -6/+6 | |
| | | | | llvm-svn: 169822 | |||||
* | [asan] fix lint, remove debug prints | Kostya Serebryany | 2012-12-07 | 1 | -1/+0 | |
| | | | | llvm-svn: 169620 | |||||
* | [asan] intercept prctl(PR_SET_NAME) and set the thread name. Output the ↵ | Kostya Serebryany | 2012-12-07 | 1 | -0/+29 | |
| | | | | | | thread names (if non-empty) in asan reports llvm-svn: 169601 |