Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [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: add new interface functions - __asan_(un)poison_stack_memory. Calls to ↵ | Alexey Samsonov | 2012-12-04 | 1 | -1/+1 | |
| | | | | | | these functions are inserted by the instrumentation pass in use-after-scope mode llvm-svn: 169201 | |||||
* | [asan] EXPECT_EQ => ASSERT_EQ around pthread_create/pthread_join calls | Kostya Serebryany | 2012-12-03 | 1 | -2/+2 | |
| | | | | llvm-svn: 169121 | |||||
* | [asan] in asan tests, check all return values of ↵ | Kostya Serebryany | 2012-12-03 | 4 | -44/+53 | |
| | | | | | | 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 | 3 | -2/+9 | |
| | | | | llvm-svn: 168992 | |||||
* | [asan] simplify break_optimization in tests (Jakub Jelinek) | Kostya Serebryany | 2012-11-30 | 3 | -24/+5 | |
| | | | | llvm-svn: 168990 | |||||
* | [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] fix Android build by not calling GetPageSizeCached in a test (no need ↵ | Kostya Serebryany | 2012-11-26 | 1 | -4/+3 | |
| | | | | | | for the page size anyway) llvm-svn: 168585 | |||||
* | [asan/tsan] get rid of kPageSize completely in favor of GetPageSizeCached(). ↵ | Kostya Serebryany | 2012-11-24 | 1 | -3/+4 | |
| | | | | | | This makes the code friendly to more platforms llvm-svn: 168537 | |||||
* | [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. ↵ | Kostya Serebryany | 2012-11-21 | 3 | -16/+15 | |
| | | | | | | Instead, define our own SANITIZER_WORDSIZE llvm-svn: 168424 | |||||
* | Update compiler-rt tests to match flag renaming/deprecation in Clang. | Richard Smith | 2012-11-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 167434 | |||||
* | [ASan] don't run hacky test for __asan_get_free_bytes() on 32-bits | Alexey Samsonov | 2012-10-26 | 1 | -15/+18 | |
| | | | | llvm-svn: 166771 | |||||
* | [ASan] add comment to blacklist file to test behavior introduced in r166283 | Alexey Samsonov | 2012-10-19 | 1 | -0/+1 | |
| | | | | llvm-svn: 166284 | |||||
* | [ASan] instrumented asan unit tests should depend on blacklist file | Alexey Samsonov | 2012-10-19 | 1 | -2/+4 | |
| | | | | llvm-svn: 166282 | |||||
* | [ASan] unit tests: Move main() to a separate file. Fix lint | Alexey Samsonov | 2012-10-17 | 4 | -10/+22 | |
| | | | | llvm-svn: 166104 | |||||
* | [ASan] Fix strchr/index tests for users who have 'char* strchr(char*,int)' ↵ | Alexey Samsonov | 2012-10-17 | 2 | -2/+27 | |
| | | | | | | 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 | 2 | -1/+8 | |
| | | | | | | compiler llvm-svn: 166099 | |||||
* | [asan] fix gcc warnings while building asan-rt | Kostya Serebryany | 2012-10-17 | 1 | -4/+6 | |
| | | | | llvm-svn: 166093 | |||||
* | [asan] fix more tests | Kostya Serebryany | 2012-10-15 | 1 | -9/+9 | |
| | | | | llvm-svn: 165934 | |||||
* | [ASan] Change __asan_set_on_error_callback to weak overridable ↵ | Alexey Samsonov | 2012-10-02 | 1 | -6/+0 | |
| | | | | | | __asan_on_error, so that ASan would call the latter even if it finds the error early (i.e. during module initialization) llvm-svn: 165008 | |||||
* | [ASan] Fix unit test headers. Add an option to change substitute ↵ | Alexey Samsonov | 2012-09-28 | 5 | -7/+13 | |
| | | | | | | asan_test_config.h file llvm-svn: 164821 | |||||
* | [ASan] cleanup: fix headers and lint warnings | Alexey Samsonov | 2012-09-19 | 2 | -5/+4 | |
| | | | | 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 | 2 | -13/+17 | |
| | | | | llvm-svn: 163704 | |||||
* | [Sanitizer] first effort to start building ASan runtime with -Werror in ↵ | Alexey Samsonov | 2012-09-12 | 2 | -3/+5 | |
| | | | | | | CMake build llvm-svn: 163686 | |||||
* | CMake build rules for ASan Android runtime and tests. | Evgeniy Stepanov | 2012-09-11 | 1 | -8/+47 | |
| | | | | llvm-svn: 163613 | |||||
* | [asan] Use __ANDROID__ guard in asan_test. | Evgeniy Stepanov | 2012-09-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 163313 | |||||
* | [ASan] hoist more compile flags to SANITIZER_COMMON_CFLAGS var and add the ↵ | Alexey Samsonov | 2012-09-05 | 1 | -0/+5 | |
| | | | | | | rest of flags/defs from old Makefile to CMake llvm-svn: 163204 | |||||
* | [ASan] Add CMake support for building ASan benchmarks | Alexey Samsonov | 2012-09-05 | 1 | -6/+13 | |
| | | | | llvm-svn: 163201 | |||||
* | Whitespace/lint | Alexey Samsonov | 2012-08-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 162909 | |||||
* | Relocate the external headers provided by ASan and the common sanitizer | Chandler Carruth | 2012-08-29 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | library. These headers are intended to be available to user code when built with AddressSanitizer (or one of the other sanitizer's in the future) to interface with the runtime library. As such, they form stable external C interfaces, and the headers shouldn't be located within the implementation. I've pulled them out into what seem like fairly obvious locations and names, but I'm wide open to further bikeshedding of these names and locations. I've updated the code and the build system to cope with the new locations, both CMake and Makefile. Please let me know if this breaks anyone's build. The eventual goal is to install these headers along side the Clang builtin headers when we build the ASan runtime and install it. My current thinking is to locate them at: <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h <prefix>/lib/clang/X.Y/include/sanitizer/... But maybe others have different suggestions? Fixing the style of the #include between these headers at least unblocks experimentation with installing them as they now should work when installed in these locations. llvm-svn: 162822 | |||||
* | Some flag cleanup for the sanitizer runtimes. | Chandler Carruth | 2012-08-29 | 1 | -1/+1 | |
| | | | | | | | | | | | | This hoists most of the CFLAGS into a common variable. It also adds detection for -Wno-c99-extensions and uses it to silence a pile of warnings. Finally, it switches to the proper flag -rdynamic. With this, the cmake build is warning free on my bootstrap Linux build. llvm-svn: 162809 | |||||
* | [ASan] CMake build: share more compile flags between instrumented and ↵ | Alexey Samsonov | 2012-08-28 | 1 | -6/+7 | |
| | | | | | | non-instrumented tests llvm-svn: 162750 | |||||
* | [asan] some renaming before we move StackTrace into sanitizer_common | Kostya Serebryany | 2012-08-28 | 1 | -13/+13 | |
| | | | | llvm-svn: 162747 | |||||
* | [asan] improve SetErrorReportCallbackTest to actually catch missing ↵ | Kostya Serebryany | 2012-08-28 | 1 | -1/+6 | |
| | | | | | | functionality in __asan_set_error_report_callback llvm-svn: 162745 | |||||
* | [asan] better diagnostics for mmap failure | Kostya Serebryany | 2012-08-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 161874 | |||||
* | [ASan] Add __asan_set_on_error_callback() interface function that allows ↵ | Alexey Samsonov | 2012-08-13 | 1 | -0/+6 | |
| | | | | | | user to set a callback to be called right when ASan detects an error llvm-svn: 161754 | |||||
* | [ASan] CMake support for building ASan runtime as a universal binary on Mac | Alexey Samsonov | 2012-08-10 | 1 | -6/+7 | |
| | | | | llvm-svn: 161665 | |||||
* | [ASan] Add support for running unit tests by lit (as a part of 'make ↵ | Alexey Samsonov | 2012-08-07 | 1 | -3/+3 | |
| | | | | | | check-asan' command) llvm-svn: 161406 | |||||
* | 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 | |||||
* | cmake for compiler-rt: add a function to set output dirs for compiler ↵ | Alexey Samsonov | 2012-07-25 | 1 | -1/+1 | |
| | | | | | | runtimes equal to directory used by Clang driver. Use it for ASan runtime. Also, make sure that ASan unit tests depend on the ASan runtime. llvm-svn: 160721 | |||||
* | [asan] don't return from a never-return function. fix a test that had a ↵ | Kostya Serebryany | 2012-07-25 | 1 | -10/+2 | |
| | | | | | | chain of bugs instead of just one llvm-svn: 160719 | |||||
* | [ASan] Support for cmake build of ASan unittests in 32-bit LLVM build. ↵ | Alexey Samsonov | 2012-07-24 | 3 | -49/+50 | |
| | | | | | | Currently, to run ASan unit tests both for 32- and 64 bits one has to maintain two distinct LLVM builds. In a bright future, we'd like to use a single build for this llvm-svn: 160666 | |||||
* | Intercept CFAllocator for each thread in the program. | Alexander Potapenko | 2012-07-23 | 2 | -1/+33 | |
| | | | | | | | 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 | 2 | -13/+10 | |
| | | | | llvm-svn: 160624 | |||||
* | For wild addresses in the shadow or shadow gap areas print an error message ↵ | Alexander Potapenko | 2012-07-23 | 1 | -1/+14 | |
| | | | | | | | | instead of crashing on a check. Add AddressSanitizer.MemsetWildAddressTest that makes sure a proper error message is printed. llvm-svn: 160620 |