summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests/asan_test.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-281-3/+48
| | | | | | 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
* [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-251-0/+12
| | | | | | asan_allocator2. More test tweaking for allocator2 llvm-svn: 171058
* [asan] add a flag alloc_dealloc_mismatch (off by default for now) which ↵Kostya Serebryany2012-12-211-5/+26
| | | | | | 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-211-1/+1
| | | | llvm-svn: 170843
* [asan] add memalign testsKostya Serebryany2012-12-201-4/+21
| | | | llvm-svn: 170687
* [asan] add ASAN_PCRE_DOTALL to two new multi-line regexpsKostya Serebryany2012-12-201-2/+2
| | | | llvm-svn: 170677
* [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
* [asan] drop the extension from asan tests (as the extension may be different)Kostya Serebryany2012-12-051-2/+2
| | | | llvm-svn: 169392
* [asan] in asan tests, check all return values of ↵Kostya Serebryany2012-12-031-37/+38
| | | | | | pthread_create/pthread_join. Also add the ASAN_AVOID_EXPENSIVE_TESTS macro to guard the test that creates too many threads llvm-svn: 169118
* [asan] make asan_test.cc more gcc-friendlyKostya Serebryany2012-11-301-0/+3
| | | | llvm-svn: 168992
* [asan] disable BuiltinLongJmpTest on AndroidKostya Serebryany2012-11-291-0/+2
| | | | llvm-svn: 168872
* [asan] enable BuiltinLongJmpTestKostya Serebryany2012-11-291-3/+2
| | | | llvm-svn: 168863
* [asan] add DISABLED_BuiltinLongJmpTestKostya Serebryany2012-11-281-0/+21
| | | | llvm-svn: 168793
* [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. ↵Kostya Serebryany2012-11-211-7/+7
| | | | | | Instead, define our own SANITIZER_WORDSIZE llvm-svn: 168424
* [ASan] unit tests: Move main() to a separate file. Fix lintAlexey Samsonov2012-10-171-8/+0
| | | | llvm-svn: 166104
* [ASan] Fix strchr/index tests for users who have 'char* strchr(char*,int)' ↵Alexey Samsonov2012-10-171-2/+25
| | | | | | instead of 'char* strchr(const char*, int)' llvm-svn: 166101
* [ASan] don't use attribute no_address_safety_analysis if it's unknown to ↵Alexey Samsonov2012-10-171-1/+1
| | | | | | compiler llvm-svn: 166099
* [asan] fix more tests Kostya Serebryany2012-10-151-9/+9
| | | | llvm-svn: 165934
* [ASan] Fix unit test headers. Add an option to change substitute ↵Alexey Samsonov2012-09-281-1/+0
| | | | | | asan_test_config.h file llvm-svn: 164821
* [ASan] cleanup: fix headers and lint warningsAlexey Samsonov2012-09-191-4/+3
| | | | llvm-svn: 164205
* Intercept signal() and sigaction() within the dynamic runtime on Mac.Alexander Potapenko2012-09-181-1/+35
| | | | | | Add a test that ensures that ASan does not allow to override the signal handlers. llvm-svn: 164118
* Remove some debugging code.Evgeniy Stepanov2012-09-141-5/+0
| | | | llvm-svn: 163881
* Give more accurate malloc statistics to malloc_zone_statistics().Alexander Potapenko2012-09-121-0/+14
| | | | | | Fix a warning in macros instantiation. llvm-svn: 163716
* [ASan] fix compiler warnings for unit test on AndroidAlexey Samsonov2012-09-121-13/+13
| | | | llvm-svn: 163704
* [asan] Use __ANDROID__ guard in asan_test.Evgeniy Stepanov2012-09-061-1/+1
| | | | llvm-svn: 163313
* [asan] better diagnostics for mmap failureKostya Serebryany2012-08-141-1/+1
| | | | llvm-svn: 161874
* Make strcat() and strncat() more standard-compliant (check for invalid ↵Alexander Potapenko2012-08-021-6/+7
| | | | | | | | parameters even if zero bytes is copied, more accurate overlap check) Fix the tests that were relying on the incorrect behavior. llvm-svn: 161167
* Intercept CFAllocator for each thread in the program.Alexander Potapenko2012-07-231-1/+32
| | | | | | | 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 llvm-svn: 160630
* [ASan] minor fixes to silence cmake build warningsAlexey Samsonov2012-07-231-6/+0
| | | | llvm-svn: 160624
* Small lint fix.Alexander Potapenko2012-06-211-1/+1
| | | | llvm-svn: 158922
* Add a test for issue 81 -- ↵Alexander Potapenko2012-06-211-1/+12
| | | | | | AddressSanitizerMac.DISABLED_CFAllocatorDefaultDoubleFree_ChildPhread llvm-svn: 158921
* Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and ↵Alexander Potapenko2012-06-211-4/+4
| | | | | | AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine. llvm-svn: 158886
* Actually intercept free() to ensure that the deallocations caused by other ↵Alexander Potapenko2012-06-201-1/+1
| | | | | | | | | 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. llvm-svn: 158863
OpenPOWER on IntegriCloud