Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [ASan] cmake unit tests: explicitly add necessary linker flags when linking ↵ | Alexey Samsonov | 2012-06-29 | 1 | -2/+6 | |
| | | | | | | unit tests with asan runtime llvm-svn: 159420 | |||||
* | [ASan] cmake-based unit tests: merge instrumented and non-instrumented files ↵ | Alexey Samsonov | 2012-06-29 | 1 | -34/+30 | |
| | | | | | | into one test binary llvm-svn: 159419 | |||||
* | [ASan] fix the build - erase second main as we link all test sources together | Alexey Samsonov | 2012-06-28 | 1 | -6/+0 | |
| | | | | llvm-svn: 159348 | |||||
* | [ASan] silence various warnings in cmake build of asan unit tests | Alexey Samsonov | 2012-06-28 | 2 | -4/+11 | |
| | | | | llvm-svn: 159347 | |||||
* | [ASan] cmake support for running asan unit tests on Mac | Alexey Samsonov | 2012-06-28 | 2 | -12/+59 | |
| | | | | llvm-svn: 159345 | |||||
* | [ASan] update cmake rules so that ASan unit tests can include googletest ↵ | Alexey Samsonov | 2012-06-28 | 1 | -1/+8 | |
| | | | | | | (and, hence, llvm) headers when they are built by fresh Clang llvm-svn: 159343 | |||||
* | Add support for building the ASan instrumentation unit tests with the | Chandler Carruth | 2012-06-27 | 1 | -18/+31 | |
| | | | | | | | | | | | | | | 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. llvm-svn: 159255 | |||||
* | [asan] update the cmake file for asan | Kostya Serebryany | 2012-06-25 | 1 | -1/+0 | |
| | | | | llvm-svn: 159143 | |||||
* | [asan] move tests from asan_interface_test.cc to asan_noinst_test.cc. Now ↵ | Kostya Serebryany | 2012-06-25 | 2 | -379/+360 | |
| | | | | | | all these tests do not require instrumentation and work directly with asan rt llvm-svn: 159135 | |||||
* | Cleanup the handling of CFLAGS even more in the cmake build for ASan. | Chandler Carruth | 2012-06-25 | 1 | -0/+56 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. llvm-svn: 159134 | |||||
* | 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 | 3 | -3/+15 | |
| | | | | | | 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 | |||||
* | Add a test for NSURL deallocation (issue 70) | Alexander Potapenko | 2012-06-20 | 3 | -0/+18 | |
| | | | | llvm-svn: 158843 | |||||
* | [ASan] add interceptor for strncat | Alexey Samsonov | 2012-06-08 | 1 | -0/+53 | |
| | | | | llvm-svn: 158198 | |||||
* | [ASan] fix GetFreeBytesTest interface test on 32-bit Linux - delete some ↵ | Alexey Samsonov | 2012-06-06 | 1 | -6/+0 | |
| | | | | | | assumptions about the behavior of allocator in test code llvm-svn: 158047 | |||||
* | Remove file-type tags for .cc files in ASan run-time library | Alexey Samsonov | 2012-06-04 | 6 | -6/+6 | |
| | | | | llvm-svn: 157927 | |||||
* | [asan] more renaming | Kostya Serebryany | 2012-05-31 | 1 | -10/+10 | |
| | | | | llvm-svn: 157747 | |||||
* | [asan] more renaming | Kostya Serebryany | 2012-05-31 | 1 | -7/+7 | |
| | | | | llvm-svn: 157746 | |||||
* | [asan] fix one test on 32-bit Mac 10.7; enable another test on Mac | Kostya Serebryany | 2012-05-22 | 2 | -5/+3 | |
| | | | | llvm-svn: 157237 | |||||
* | [asan] fix asan issue #66 (correctly report type of the bug) | Kostya Serebryany | 2012-04-23 | 1 | -2/+2 | |
| | | | | llvm-svn: 155344 | |||||
* | [asan] test for issue #66 | Kostya Serebryany | 2012-04-19 | 1 | -0/+10 | |
| | | | | llvm-svn: 155127 | |||||
* | Change the way ASan interacts with custom signal handlers. | Alexander Potapenko | 2012-04-10 | 1 | -42/+0 | |
| | | | | | | | | 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. llvm-svn: 154390 | |||||
* | Use 'typename' instead of 'class' in template<> definitions supporting POD types | Timur Iskhodzhanov | 2012-04-09 | 1 | -6/+6 | |
| | | | | llvm-svn: 154314 | |||||
* | Make sure NSObjects are allocated in a way that is visible to ASan. | Alexander Potapenko | 2012-03-30 | 3 | -0/+23 | |
| | | | | llvm-svn: 153762 | |||||
* | [ASan] interceptors for atoi/atol/atoll | Alexey Samsonov | 2012-03-29 | 1 | -2/+46 | |
| | | | | llvm-svn: 153637 | |||||
* | [asan] fix lint | Kostya Serebryany | 2012-03-28 | 1 | -2/+2 | |
| | | | | llvm-svn: 153601 | |||||
* | [asan] add racy double-free test | Kostya Serebryany | 2012-03-28 | 1 | -0/+32 | |
| | | | | llvm-svn: 153586 | |||||
* | [ASan] add interceptor for strtol | Alexey Samsonov | 2012-03-26 | 1 | -16/+31 | |
| | | | | llvm-svn: 153444 | |||||
* | [ASan] add interceptor for strtoll | Alexey Samsonov | 2012-03-24 | 1 | -0/+40 | |
| | | | | llvm-svn: 153376 | |||||
* | [ASan/tests] Make 'noinline' and a bunch of other stuff portable | Timur Iskhodzhanov | 2012-03-23 | 2 | -52/+60 | |
| | | | | llvm-svn: 153333 | |||||
* | [ASan] replace '#if ... or ...' with '#if ... || ...' | Timur Iskhodzhanov | 2012-03-23 | 1 | -2/+2 | |
| | | | | llvm-svn: 153332 | |||||
* | [asan] extend the test for long double bug | Kostya Serebryany | 2012-03-21 | 1 | -0/+2 | |
| | | | | llvm-svn: 153190 | |||||
* | [asan] disable GetOwnershipStressTest on non-linux | Kostya Serebryany | 2012-03-16 | 1 | -0/+3 | |
| | | | | llvm-svn: 152953 | |||||
* | [asan] use O(log(N)) algorithm instead of O(N) in __asan_get_ownership | Kostya Serebryany | 2012-03-10 | 1 | -8/+19 | |
| | | | | llvm-svn: 152467 | |||||
* | [asan] add a (disabled) stress test for __asan_get_ownership | Kostya Serebryany | 2012-03-09 | 1 | -0/+12 | |
| | | | | llvm-svn: 152362 | |||||
* | [asan] Add a negative test for memcpy of long double. | Evgeniy Stepanov | 2012-03-02 | 1 | -0/+8 | |
| | | | | llvm-svn: 151888 | |||||
* | Introduce __asan_set_error_report_callback() to allow the client program ↵ | Alexander Potapenko | 2012-02-27 | 1 | -0/+18 | |
| | | | | | | | | 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. llvm-svn: 151528 | |||||
* | Replace some #ifdef(s) with plain if(s). | Evgeniy Stepanov | 2012-02-27 | 1 | -10/+4 | |
| | | | | llvm-svn: 151526 | |||||
* | AddressSanitizer: fix lint | Alexey Samsonov | 2012-02-17 | 1 | -2/+2 | |
| | | | | llvm-svn: 150802 | |||||
* | [asan] Allocator tweaks for low memory systems. | Evgeniy Stepanov | 2012-02-16 | 2 | -0/+14 | |
| | | | | llvm-svn: 150689 | |||||
* | [asan] implement __asan_set_death_callback | Kostya Serebryany | 2012-02-13 | 1 | -0/+10 | |
| | | | | llvm-svn: 150414 | |||||
* | [asan] Add a missing return. | Evgeniy Stepanov | 2012-02-13 | 1 | -0/+1 | |
| | | | | | | | It is technically reachable on Android, where pthread_exit is not marked noreturn. llvm-svn: 150381 | |||||
* | AddressSanitizer: move output tests to a separate directory | Alexey Samsonov | 2012-02-13 | 33 | -525/+0 | |
| | | | | llvm-svn: 150367 | |||||
* | AddressSanitizer: Use FileCheck instead of grep for pure C output tests | Alexey Samsonov | 2012-02-13 | 2 | -4/+22 | |
| | | | | llvm-svn: 150366 | |||||
* | [asan] unpoison the stack before every noreturn call. Fixes asan issue 37. ↵ | Kostya Serebryany | 2012-02-08 | 2 | -0/+34 | |
| | | | | | | rt part llvm-svn: 150101 | |||||
* | [asan] better warning messages for double-free bugs (provide ↵ | Kostya Serebryany | 2012-02-08 | 1 | -1/+5 | |
| | | | | | | allocation/deallocation stack traces) llvm-svn: 150027 | |||||
* | [asan] make sure the AsanThread object is destroyed if pthread_exit is called | Kostya Serebryany | 2012-02-07 | 1 | -0/+12 | |
| | | | | llvm-svn: 149940 | |||||
* | Disables testing memcpy() on Mac OS 10.7, | Alexander Potapenko | 2012-02-01 | 1 | -0/+6 | |
| | | | | | | | where memcpy() in fact aliases memmove() and thus calling it with overlapping parameters is not an error. llvm-svn: 149491 |