Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | A set of trivial changes to support sanitizers on FreeBSD. | Alexey Samsonov | 2014-03-04 | 1 | -1/+1 | |
| | | | | | | Patch by Viktor Kutuzov! llvm-svn: 202801 | |||||
* | Reapply r201910. MSVC gets __func__ defined explicitly, even though it | Joerg Sonnenberger | 2014-02-26 | 1 | -2/+2 | |
| | | | | | | can't build anything here. llvm-svn: 202297 | |||||
* | [asan] remove UB (comparison of two unrelated pointers) from a test | Kostya Serebryany | 2014-02-26 | 1 | -7/+8 | |
| | | | | llvm-svn: 202266 | |||||
* | [asan] simplify the code that compute the shadow offset; get rid of two ↵ | Kostya Serebryany | 2014-02-24 | 1 | -2/+0 | |
| | | | | | | internal flags that allowed to override it. The tests pass, but still this change might break asan on some platform not covered by tests. If you see this, please submit a fix with a test. llvm-svn: 202033 | |||||
* | Revert "Replace __FUNCTION__ with __func__, the latter being standard ↵ | Reid Kleckner | 2014-02-22 | 1 | -2/+2 | |
| | | | | | | | | | | | | C99/C++11." This reverts commit r201910. While __func__ may be standard in C++11, it was only recently added to MSVC in 2013 CTP, and LLVM supports MSVC 2012. __FUNCTION__ may not be standard, but it's *very* portable. llvm-svn: 201916 | |||||
* | Replace __FUNCTION__ with __func__, the latter being standard C99/C++11. | Joerg Sonnenberger | 2014-02-21 | 1 | -2/+2 | |
| | | | | llvm-svn: 201910 | |||||
* | [CMake] break dependency between unit tests and runtimes in standalone build | Alexey Samsonov | 2014-02-20 | 1 | -4/+9 | |
| | | | | llvm-svn: 201778 | |||||
* | [asan] Disable asm instrumentation and tests on Mac. | Evgeniy Stepanov | 2014-02-19 | 3 | -201/+219 | |
| | | | | | | Move asm tests to their own file. llvm-svn: 201653 | |||||
* | [asan] Added assembly functions for x86/amd64 asan. | Evgeniy Stepanov | 2014-02-19 | 1 | -0/+201 | |
| | | | | | | | | | These are runtime support functions for inline assembly instrumentation. This is a re-submit of r201402. Patch by Yuri Gorshenin. llvm-svn: 201650 | |||||
* | [CMake] Simplify code for detecting/setting compiler flags | Alexey Samsonov | 2014-02-18 | 1 | -3/+1 | |
| | | | | llvm-svn: 201543 | |||||
* | [ASan] Rename asan_runtime_libraries to asan. Re-enable tests on Android. | Alexey Samsonov | 2014-02-14 | 1 | -4/+4 | |
| | | | | llvm-svn: 201417 | |||||
* | [asan] Revert r201402, r201404. | Evgeniy Stepanov | 2014-02-14 | 1 | -199/+0 | |
| | | | | | | Test fails in bootstrap build. llvm-svn: 201411 | |||||
* | [asan] Added assembly functions for x86/amd64 asan. | Evgeniy Stepanov | 2014-02-14 | 1 | -0/+199 | |
| | | | | | | | | These are runtime support functions for inline assembly instrumentation. Patch by Yuri Gorshenin. llvm-svn: 201402 | |||||
* | [asan] Enable SEGV handler on Android by default. | Evgeniy Stepanov | 2014-02-13 | 1 | -7/+1 | |
| | | | | | | | Seems stable enough. Fixes null_deref.cc test. llvm-svn: 201326 | |||||
* | [asan] Android logging. | Evgeniy Stepanov | 2014-01-23 | 1 | -0/+1 | |
| | | | | | | This change duplicates all ASan output to system log on Android. llvm-svn: 199887 | |||||
* | [asan] Restore lost -pie in Android tests. | Evgeniy Stepanov | 2014-01-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 199379 | |||||
* | [asan] Remove leftover use of -fsanitize-address-zero-base-shadow. | Evgeniy Stepanov | 2014-01-16 | 1 | -11/+0 | |
| | | | | llvm-svn: 199373 | |||||
* | [asan] Nuke ASAN_FLEXIBLE_MAPPING_AND_OFFSET. | Evgeniy Stepanov | 2014-01-16 | 2 | -30/+0 | |
| | | | | llvm-svn: 199370 | |||||
* | [asan] if verbosity>=2, print the fake stack usage stats at thread exit; No ↵ | Kostya Serebryany | 2013-12-11 | 1 | -4/+4 | |
| | | | | | | functionality change in non-verboze mode llvm-svn: 197037 | |||||
* | [asan] relax HugeMallocTest so that it does not fail on small-RAM machines | Kostya Serebryany | 2013-12-10 | 1 | -1/+3 | |
| | | | | llvm-svn: 196904 | |||||
* | [asan] remove one test from SizedStackTest which relied on a now-wrong ↵ | Kostya Serebryany | 2013-12-10 | 1 | -2/+0 | |
| | | | | | | assumption that the left stack redzone is >= 32 bytes (PR18195) llvm-svn: 196900 | |||||
* | [asan] in SizedStackTest check the death string, also restrict one of the ↵ | Kostya Serebryany | 2013-12-06 | 1 | -8/+9 | |
| | | | | | | checks to 64-bit llvm-svn: 196576 | |||||
* | [asan] require __i686__ for the SSE test; also make weaker claims about ↵ | Kostya Serebryany | 2013-12-04 | 2 | -9/+8 | |
| | | | | | | stack buffer overflows in another test llvm-svn: 196375 | |||||
* | [asan] revert 196373: committed to many files by mistake | Kostya Serebryany | 2013-12-04 | 2 | -8/+9 | |
| | | | | llvm-svn: 196374 | |||||
* | [asan] require __i686__ for the SSE test; also make weaker claims about ↵ | Kostya Serebryany | 2013-12-04 | 2 | -9/+8 | |
| | | | | | | stack buffer overflows in another test llvm-svn: 196373 | |||||
* | [asan] disable AddressSanitizer.HugeMallocTest if ASAN_AVOID_EXPENSIVE_TESTS ↵ | Kostya Serebryany | 2013-12-02 | 1 | -1/+1 | |
| | | | | | | is set llvm-svn: 196097 | |||||
* | [ASan] Introduce a top-level target to collect all ASan runtimes and deps | Alexey Samsonov | 2013-11-14 | 1 | -2/+2 | |
| | | | | llvm-svn: 194696 | |||||
* | [ASan] Do not rely on malloc context in allocator reports. | Alexey Samsonov | 2013-11-13 | 1 | -1/+1 | |
| | | | | | | | | | | | Invoke a fatal stack trace unwinder when ASan prints allocator-relevant error reports (double-free, alloc-dealloc-mismatch, invalid-free). Thus we'll be able to print complete stack trace even if allocation/free stacks are not stored (malloc_context_size=0). Based on the patch by Yuri Gribov! llvm-svn: 194579 | |||||
* | [ASan] Kill use_stack_depot runtime flag and stack trace compression routines. | Alexey Samsonov | 2013-11-01 | 1 | -138/+0 | |
| | | | | llvm-svn: 193868 | |||||
* | [asan] Maybe fix test failures on lld bots. | Evgeniy Stepanov | 2013-10-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 193647 | |||||
* | [asan] Remove CallocOverflow32 test from asan_test. | Evgeniy Stepanov | 2013-10-16 | 1 | -11/+0 | |
| | | | | | | | The same as with MSan, this test behavior depends on ASAN_OPTIONS, and we've got a lit_test that covers this. llvm-svn: 192777 | |||||
* | [asan] introduce run-time flag uar_stack_size_log to control the size of ↵ | Kostya Serebryany | 2013-09-27 | 1 | -6/+2 | |
| | | | | | | FakeStack; don't crash when the fake stack is exhausted, move some code to .cc file llvm-svn: 191510 | |||||
* | [ASan] Fix GCD tests by spinning forever in the main thread. | Alexander Potapenko | 2013-09-24 | 1 | -18/+21 | |
| | | | | | | Since the error is always reported by one of the GCD workers, this will help avoid premature program termination with exit code 0. llvm-svn: 191294 | |||||
* | [asan] remove -fsanitize=use-after-return from the tests (this flag now ↵ | Kostya Serebryany | 2013-09-23 | 1 | -1/+0 | |
| | | | | | | comes with asan by default) llvm-svn: 191204 | |||||
* | [ASan] Fix compilation of asan_str_test.cc on non-Darwin. | Alexander Potapenko | 2013-09-20 | 1 | -1/+3 | |
| | | | | llvm-svn: 191083 | |||||
* | [ASan] Enforce the memmove semantics for both memcpy() and memmove() ↵ | Alexander Potapenko | 2013-09-20 | 1 | -0/+2 | |
| | | | | | | | | | | | | | interceptors on Darwin. Due to bugs in the interposition of resolver functions on 10.7 and 10.8 both memcpy() and memmove() were previously intercepted by INTERCEPTOR(memcpy), which led to false positives and crashes (see http://llvm.org/bugs/show_bug.cgi?id=16362) We choose to use a memmove-like function in both cases. This effectively disables the overlap checks in memcpy(), but the overlaps aren't possible in practice, because memcpy() and memmove() are the same function on Darwin. Once the interposition is fixed in 10.9, we'll need to revisit this issue, see https://code.google.com/p/address-sanitizer/issues/detail?id=226 llvm-svn: 191081 | |||||
* | [ASan] Enable fake stack test on Mac and Android, as no-instrumentation ↵ | Alexey Samsonov | 2013-09-17 | 1 | -6/+1 | |
| | | | | | | tests are now fixed llvm-svn: 190856 | |||||
* | [ASan] Link tests with -pie if ASan runtime uses zero-base shadow | Alexey Samsonov | 2013-09-17 | 1 | -0/+3 | |
| | | | | llvm-svn: 190853 | |||||
* | [asan] further speedup use-after-return: simplify deallocation of fake ↵ | Kostya Serebryany | 2013-09-17 | 1 | -2/+2 | |
| | | | | | | frames. ~ 20% speedup. llvm-svn: 190852 | |||||
* | [ASan] Don't link with pthread on Android | Alexey Samsonov | 2013-09-16 | 1 | -1/+4 | |
| | | | | llvm-svn: 190794 | |||||
* | [ASan] Split ASan unit tests into two different binaries: | Alexey Samsonov | 2013-09-16 | 4 | -518/+605 | |
| | | | | | | | (1) instrumented, i.e. compiled and linked with -fsanitize=address (2) not instrumented, compiled w/o -fsanitize=address and linked with ASan runtime statically. llvm-svn: 190788 | |||||
* | [ASan] Temporary disable UAR unit test on Android due to ↵ | Alexey Samsonov | 2013-09-13 | 1 | -5/+5 | |
| | | | | | | https://code.google.com/p/address-sanitizer/issues/detail?id=222 llvm-svn: 190667 | |||||
* | [asan] don't record the class_id in FakeFrame (scratching the last bits of ↵ | Kostya Serebryany | 2013-09-13 | 1 | -6/+6 | |
| | | | | | | performance) llvm-svn: 190666 | |||||
* | [asan] a bit of performance improvement in fake stack, generalized one test, ↵ | Kostya Serebryany | 2013-09-12 | 1 | -28/+28 | |
| | | | | | | fixed android build of another test llvm-svn: 190606 | |||||
* | [ASan] Do not build asan_fake_stack_test.cc on OSX until ↵ | Alexander Potapenko | 2013-09-12 | 1 | -0/+10 | |
| | | | | | | https://code.google.com/p/address-sanitizer/issues/detail?id=222 is fixed. llvm-svn: 190597 | |||||
* | [asan] fully re-implement the FakeStack (use-after-return) to make it faster ↵ | Kostya Serebryany | 2013-09-12 | 2 | -0/+155 | |
| | | | | | | and async-signal-safe. The implementation is not yet complete (see FIXMEs) but the existing tests pass. llvm-svn: 190588 | |||||
* | [asan] refactor the use-after-return API so that the size class is computed ↵ | Kostya Serebryany | 2013-09-10 | 1 | -9/+0 | |
| | | | | | | at compile time instead of at run-time. compiler-rt part llvm-svn: 190406 | |||||
* | [ASan] turn on leak checking for ASan tests and fix a few discovered leaks | Alexey Samsonov | 2013-09-08 | 2 | -0/+2 | |
| | | | | llvm-svn: 190274 | |||||
* | Fix compiler warning introduced in r190022 | Alexey Samsonov | 2013-09-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 190137 | |||||
* | Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ↵ | Alexey Samsonov | 2013-09-06 | 1 | -4/+4 | |
| | | | | | | ATTRIBUTE_NO_SANITIZE_ADDRESS llvm-svn: 190136 |