summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* A set of trivial changes to support sanitizers on FreeBSD.Alexey Samsonov2014-03-041-1/+1
| | | | | | Patch by Viktor Kutuzov! llvm-svn: 202801
* Reapply r201910. MSVC gets __func__ defined explicitly, even though itJoerg Sonnenberger2014-02-261-2/+2
| | | | | | can't build anything here. llvm-svn: 202297
* [asan] remove UB (comparison of two unrelated pointers) from a testKostya Serebryany2014-02-261-7/+8
| | | | llvm-svn: 202266
* [asan] simplify the code that compute the shadow offset; get rid of two ↵Kostya Serebryany2014-02-241-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 Kleckner2014-02-221-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 Sonnenberger2014-02-211-2/+2
| | | | llvm-svn: 201910
* [CMake] break dependency between unit tests and runtimes in standalone buildAlexey Samsonov2014-02-201-4/+9
| | | | llvm-svn: 201778
* [asan] Disable asm instrumentation and tests on Mac.Evgeniy Stepanov2014-02-193-201/+219
| | | | | | Move asm tests to their own file. llvm-svn: 201653
* [asan] Added assembly functions for x86/amd64 asan.Evgeniy Stepanov2014-02-191-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 flagsAlexey Samsonov2014-02-181-3/+1
| | | | llvm-svn: 201543
* [ASan] Rename asan_runtime_libraries to asan. Re-enable tests on Android.Alexey Samsonov2014-02-141-4/+4
| | | | llvm-svn: 201417
* [asan] Revert r201402, r201404.Evgeniy Stepanov2014-02-141-199/+0
| | | | | | Test fails in bootstrap build. llvm-svn: 201411
* [asan] Added assembly functions for x86/amd64 asan.Evgeniy Stepanov2014-02-141-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 Stepanov2014-02-131-7/+1
| | | | | | | Seems stable enough. Fixes null_deref.cc test. llvm-svn: 201326
* [asan] Android logging.Evgeniy Stepanov2014-01-231-0/+1
| | | | | | This change duplicates all ASan output to system log on Android. llvm-svn: 199887
* [asan] Restore lost -pie in Android tests.Evgeniy Stepanov2014-01-161-1/+1
| | | | llvm-svn: 199379
* [asan] Remove leftover use of -fsanitize-address-zero-base-shadow.Evgeniy Stepanov2014-01-161-11/+0
| | | | llvm-svn: 199373
* [asan] Nuke ASAN_FLEXIBLE_MAPPING_AND_OFFSET.Evgeniy Stepanov2014-01-162-30/+0
| | | | llvm-svn: 199370
* [asan] if verbosity>=2, print the fake stack usage stats at thread exit; No ↵Kostya Serebryany2013-12-111-4/+4
| | | | | | functionality change in non-verboze mode llvm-svn: 197037
* [asan] relax HugeMallocTest so that it does not fail on small-RAM machinesKostya Serebryany2013-12-101-1/+3
| | | | llvm-svn: 196904
* [asan] remove one test from SizedStackTest which relied on a now-wrong ↵Kostya Serebryany2013-12-101-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 Serebryany2013-12-061-8/+9
| | | | | | checks to 64-bit llvm-svn: 196576
* [asan] require __i686__ for the SSE test; also make weaker claims about ↵Kostya Serebryany2013-12-042-9/+8
| | | | | | stack buffer overflows in another test llvm-svn: 196375
* [asan] revert 196373: committed to many files by mistakeKostya Serebryany2013-12-042-8/+9
| | | | llvm-svn: 196374
* [asan] require __i686__ for the SSE test; also make weaker claims about ↵Kostya Serebryany2013-12-042-9/+8
| | | | | | stack buffer overflows in another test llvm-svn: 196373
* [asan] disable AddressSanitizer.HugeMallocTest if ASAN_AVOID_EXPENSIVE_TESTS ↵Kostya Serebryany2013-12-021-1/+1
| | | | | | is set llvm-svn: 196097
* [ASan] Introduce a top-level target to collect all ASan runtimes and depsAlexey Samsonov2013-11-141-2/+2
| | | | llvm-svn: 194696
* [ASan] Do not rely on malloc context in allocator reports.Alexey Samsonov2013-11-131-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 Samsonov2013-11-011-138/+0
| | | | llvm-svn: 193868
* [asan] Maybe fix test failures on lld bots.Evgeniy Stepanov2013-10-291-1/+1
| | | | llvm-svn: 193647
* [asan] Remove CallocOverflow32 test from asan_test.Evgeniy Stepanov2013-10-161-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 Serebryany2013-09-271-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 Potapenko2013-09-241-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 Serebryany2013-09-231-1/+0
| | | | | | comes with asan by default) llvm-svn: 191204
* [ASan] Fix compilation of asan_str_test.cc on non-Darwin.Alexander Potapenko2013-09-201-1/+3
| | | | llvm-svn: 191083
* [ASan] Enforce the memmove semantics for both memcpy() and memmove() ↵Alexander Potapenko2013-09-201-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 Samsonov2013-09-171-6/+1
| | | | | | tests are now fixed llvm-svn: 190856
* [ASan] Link tests with -pie if ASan runtime uses zero-base shadowAlexey Samsonov2013-09-171-0/+3
| | | | llvm-svn: 190853
* [asan] further speedup use-after-return: simplify deallocation of fake ↵Kostya Serebryany2013-09-171-2/+2
| | | | | | frames. ~ 20% speedup. llvm-svn: 190852
* [ASan] Don't link with pthread on AndroidAlexey Samsonov2013-09-161-1/+4
| | | | llvm-svn: 190794
* [ASan] Split ASan unit tests into two different binaries:Alexey Samsonov2013-09-164-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 Samsonov2013-09-131-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 Serebryany2013-09-131-6/+6
| | | | | | performance) llvm-svn: 190666
* [asan] a bit of performance improvement in fake stack, generalized one test, ↵Kostya Serebryany2013-09-121-28/+28
| | | | | | fixed android build of another test llvm-svn: 190606
* [ASan] Do not build asan_fake_stack_test.cc on OSX until ↵Alexander Potapenko2013-09-121-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 Serebryany2013-09-122-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 Serebryany2013-09-101-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 leaksAlexey Samsonov2013-09-082-0/+2
| | | | llvm-svn: 190274
* Fix compiler warning introduced in r190022Alexey Samsonov2013-09-061-1/+1
| | | | llvm-svn: 190137
* Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ↵Alexey Samsonov2013-09-061-4/+4
| | | | | | ATTRIBUTE_NO_SANITIZE_ADDRESS llvm-svn: 190136
OpenPOWER on IntegriCloud