summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [asan] fix linux buildKostya Serebryany2013-01-211-9/+9
| | | | llvm-svn: 173049
* [ASan] Move Mac-specific tests to asan_mac_test.ccAlexander Potapenko2013-01-214-232/+249
| | | | llvm-svn: 173048
* CMake: generalize checking for target availability and add initial support ↵Alexey Samsonov2013-01-211-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 Samsonov2013-01-212-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 Samsonov2013-01-212-18/+29
| | | | | | Android llvm-svn: 173021
* CMake: create AddCompilerRT module and implement convenience ↵Alexey Samsonov2013-01-181-1/+0
| | | | | | add_compiler_rt_object_library function llvm-svn: 172826
* CMake variables renaming: X86_64->x86_64 I386->i386Alexey Samsonov2013-01-181-2/+3
| | | | llvm-svn: 172812
* [ASan] fixes for Android buildAlexey Samsonov2013-01-182-3/+3
| | | | llvm-svn: 172800
* [sanitizer] reapply r172719, r172721-172723, r172725, and also fix the ↵Kostya Serebryany2013-01-181-30/+16
| | | | | | warning on Mac. llvm-svn: 172791
* Revert r172719, r172721-172723, and r172725.Jakob Stoklund Olesen2013-01-171-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 1Alexey Samsonov2013-01-171-1/+2
| | | | llvm-svn: 172726
* [asan] restructure read/pread/pread64 testsKostya Serebryany2013-01-171-30/+16
| | | | llvm-svn: 172723
* [ASan] fix __asan_get_ownership(p) and __asan_get_allocated_size(p) for the ↵Alexey Samsonov2013-01-171-1/+9
| | | | | | p = malloc(0) llvm-svn: 172717
* Move large part of asan_test_utils.h to sanitizer_common.Evgeniy Stepanov2013-01-143-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 Samsonov2013-01-141-4/+4
| | | | | | work there llvm-svn: 172398
* ASan: Disable alloc/dealloc-mismatch checker on Mac for now (it produces ↵Alexey Samsonov2013-01-141-3/+5
| | | | | | weird false positives on googletest) llvm-svn: 172394
* [asan] don't fail the test if prctl(PR_SET_NAME) is not supportedKostya Serebryany2013-01-101-13/+24
| | | | llvm-svn: 172059
* [asan] asan_allocator2: do less work under the quarantine lock; make the ↵Kostya Serebryany2013-01-101-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 Serebryany2013-01-101-25/+27
| | | | | | include unistd.h llvm-svn: 172045
* [asan] make LargeOOBInMemset test resistant to clever compiler optimizationsKostya Serebryany2012-12-291-3/+4
| | | | llvm-svn: 171223
* [asan] fix a build warning Kostya Serebryany2012-12-281-1/+1
| | | | llvm-svn: 171200
* [asan] implement more strict checking for memset/etc parameters. Instead of ↵Kostya Serebryany2012-12-282-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 Samsonov2012-12-271-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 Serebryany2012-12-261-1/+1
| | | | | | (saves a bit more memory) llvm-svn: 171111
* [asan] asan_allocator2: implement adaptive redzones. Now with ↵Kostya Serebryany2012-12-261-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 Serebryany2012-12-252-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 Serebryany2012-12-251-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_allocator2Kostya Serebryany2012-12-241-2/+0
| | | | llvm-svn: 171036
* [Sanitizer] CMake build rules for unittests: depend on headers when ↵Alexey Samsonov2012-12-211-0/+6
| | | | | | compiling a file with custom clang. llvm-svn: 170897
* [Sanitizer] Don't implicitly add object files to the list of dependencies ↵Alexey Samsonov2012-12-211-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 Serebryany2012-12-212-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 Relph2012-12-212-7/+7
| | | | llvm-svn: 170843
* [asan] asan_allocator2: implement memalignKostya Serebryany2012-12-201-0/+2
| | | | llvm-svn: 170697
* [asan] add memalign testsKostya Serebryany2012-12-201-4/+21
| | | | llvm-svn: 170687
* [asan] asan_allocator2: make all remaining tests pass.Kostya Serebryany2012-12-201-0/+23
| | | | llvm-svn: 170680
* [asan] add ASAN_PCRE_DOTALL to two new multi-line regexpsKostya Serebryany2012-12-201-2/+2
| | | | llvm-svn: 170677
* [ASan] don't use -fsanitize=address linker flag for unit tests on AndroidAlexey Samsonov2012-12-201-3/+9
| | | | llvm-svn: 170670
* [ASan] explicitly link with dynamic ASan runtime when building unittests on ↵Alexey Samsonov2012-12-191-1/+1
| | | | | | Android llvm-svn: 170552
* [ASan] Support building both 32- and 64-bit unit tests if we can target both ↵Alexey Samsonov2012-12-191-35/+39
| | | | | | architectures llvm-svn: 170549
* [ASan] make sure Android unittests depend on ASan runtimeAlexey Samsonov2012-12-191-0/+2
| | | | llvm-svn: 170543
* Significantly change the way we build ASan unittests in CMakeAlexey Samsonov2012-12-191-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 Potapenko2012-12-191-8/+11
| | | | llvm-svn: 170531
* [ASan] more macro for conditional interception of pread functionsAlexey Samsonov2012-12-131-2/+2
| | | | llvm-svn: 170112
* [ASan] Fix test expectations for strcat/strncat.Alexander Potapenko2012-12-121-4/+13
| | | | llvm-svn: 169987
* [ASan] Enhance OOB tests to check for access type (read or write).Alexander Potapenko2012-12-121-104/+122
| | | | llvm-svn: 169974
* [asan] fix android build and lintKostya Serebryany2012-12-121-3/+5
| | | | llvm-svn: 169968
* [asan] add sanitizer_common/sanitizer_common_interceptors.h with ↵Kostya Serebryany2012-12-121-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 flexibleKostya Serebryany2012-12-111-6/+6
| | | | llvm-svn: 169822
* [asan] fix lint, remove debug prints Kostya Serebryany2012-12-071-1/+0
| | | | llvm-svn: 169620
* [asan] intercept prctl(PR_SET_NAME) and set the thread name. Output the ↵Kostya Serebryany2012-12-071-0/+29
| | | | | | thread names (if non-empty) in asan reports llvm-svn: 169601
OpenPOWER on IntegriCloud