Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | 1 | -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 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 | 1 | -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 Serebryany | 2012-12-21 | 1 | -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 Relph | 2012-12-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 170843 | |||||
* | [asan] add memalign tests | Kostya Serebryany | 2012-12-20 | 1 | -4/+21 | |
| | | | | llvm-svn: 170687 | |||||
* | [asan] add ASAN_PCRE_DOTALL to two new multi-line regexps | Kostya Serebryany | 2012-12-20 | 1 | -2/+2 | |
| | | | | llvm-svn: 170677 | |||||
* | [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 | |||||
* | [asan] drop the extension from asan tests (as the extension may be different) | Kostya Serebryany | 2012-12-05 | 1 | -2/+2 | |
| | | | | llvm-svn: 169392 | |||||
* | [asan] in asan tests, check all return values of ↵ | Kostya Serebryany | 2012-12-03 | 1 | -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-friendly | Kostya Serebryany | 2012-11-30 | 1 | -0/+3 | |
| | | | | llvm-svn: 168992 | |||||
* | [asan] disable BuiltinLongJmpTest on Android | Kostya Serebryany | 2012-11-29 | 1 | -0/+2 | |
| | | | | llvm-svn: 168872 | |||||
* | [asan] enable BuiltinLongJmpTest | Kostya Serebryany | 2012-11-29 | 1 | -3/+2 | |
| | | | | llvm-svn: 168863 | |||||
* | [asan] add DISABLED_BuiltinLongJmpTest | Kostya Serebryany | 2012-11-28 | 1 | -0/+21 | |
| | | | | llvm-svn: 168793 | |||||
* | [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. ↵ | Kostya Serebryany | 2012-11-21 | 1 | -7/+7 | |
| | | | | | | Instead, define our own SANITIZER_WORDSIZE llvm-svn: 168424 | |||||
* | [ASan] unit tests: Move main() to a separate file. Fix lint | Alexey Samsonov | 2012-10-17 | 1 | -8/+0 | |
| | | | | llvm-svn: 166104 | |||||
* | [ASan] Fix strchr/index tests for users who have 'char* strchr(char*,int)' ↵ | Alexey Samsonov | 2012-10-17 | 1 | -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 Samsonov | 2012-10-17 | 1 | -1/+1 | |
| | | | | | | compiler llvm-svn: 166099 | |||||
* | [asan] fix more tests | Kostya Serebryany | 2012-10-15 | 1 | -9/+9 | |
| | | | | llvm-svn: 165934 | |||||
* | [ASan] Fix unit test headers. Add an option to change substitute ↵ | Alexey Samsonov | 2012-09-28 | 1 | -1/+0 | |
| | | | | | | asan_test_config.h file llvm-svn: 164821 | |||||
* | [ASan] cleanup: fix headers and lint warnings | Alexey Samsonov | 2012-09-19 | 1 | -4/+3 | |
| | | | | llvm-svn: 164205 | |||||
* | Intercept signal() and sigaction() within the dynamic runtime on Mac. | Alexander Potapenko | 2012-09-18 | 1 | -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 Stepanov | 2012-09-14 | 1 | -5/+0 | |
| | | | | llvm-svn: 163881 | |||||
* | Give more accurate malloc statistics to malloc_zone_statistics(). | Alexander Potapenko | 2012-09-12 | 1 | -0/+14 | |
| | | | | | | Fix a warning in macros instantiation. llvm-svn: 163716 | |||||
* | [ASan] fix compiler warnings for unit test on Android | Alexey Samsonov | 2012-09-12 | 1 | -13/+13 | |
| | | | | llvm-svn: 163704 | |||||
* | [asan] Use __ANDROID__ guard in asan_test. | Evgeniy Stepanov | 2012-09-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 163313 | |||||
* | [asan] better diagnostics for mmap failure | Kostya Serebryany | 2012-08-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 161874 | |||||
* | Make strcat() and strncat() more standard-compliant (check for invalid ↵ | Alexander Potapenko | 2012-08-02 | 1 | -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 Potapenko | 2012-07-23 | 1 | -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 warnings | Alexey Samsonov | 2012-07-23 | 1 | -6/+0 | |
| | | | | llvm-svn: 160624 | |||||
* | Small lint fix. | Alexander Potapenko | 2012-06-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 158922 | |||||
* | Add a test for issue 81 -- ↵ | Alexander Potapenko | 2012-06-21 | 1 | -1/+12 | |
| | | | | | | AddressSanitizerMac.DISABLED_CFAllocatorDefaultDoubleFree_ChildPhread llvm-svn: 158921 | |||||
* | Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and ↵ | Alexander Potapenko | 2012-06-21 | 1 | -4/+4 | |
| | | | | | | AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine. llvm-svn: 158886 | |||||
* | Actually intercept free() to ensure that the deallocations caused by other ↵ | Alexander Potapenko | 2012-06-20 | 1 | -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 |