summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan
Commit message (Collapse)AuthorAgeFilesLines
...
* [asancov] Write coverage directly to a memory-mapped file.Evgeniy Stepanov2014-05-271-0/+2
| | | | | | | | | | | This way does not require a __sanitizer_cov_dump() call. That's important on Android, where apps can be killed at arbitrary time. We write raw PCs to disk instead of module offsets; we also write memory layout to a separate file. This increases dump size by the factor of 2 on 64-bit systems. llvm-svn: 209653
* [asan] fix a test following r209508Kostya Serebryany2014-05-231-1/+3
| | | | llvm-svn: 209509
* [asan] relax the test for long doubleKostya Serebryany2014-05-221-2/+2
| | | | llvm-svn: 209445
* [ASan/Win] Make sure the list of wrappers exported by the main module and ↵Timur Iskhodzhanov2014-05-222-0/+4
| | | | | | imported by the DLL thunk always matches llvm-svn: 209444
* [ASan/Win] Thread more library functions from the DLL thunk to the main moduleTimur Iskhodzhanov2014-05-221-4/+33
| | | | llvm-svn: 209441
* [ASan/Win] Use the new function interception approach to handle function ↵Timur Iskhodzhanov2014-05-221-56/+80
| | | | | | | | wrappers too; wrap strlen() in DLLs Reviewed at http://reviews.llvm.org/D3871 llvm-svn: 209427
* [ASan/Win] Don't use INTERCEPTOR_ATTRIBUTE for operator new/delete on WindowsTimur Iskhodzhanov2014-05-221-8/+15
| | | | | | Reviewed at http://reviews.llvm.org/D3870 llvm-svn: 209416
* [ASan/Win] Add a comment about DCL-using-static vs threadsTimur Iskhodzhanov2014-05-221-0/+1
| | | | llvm-svn: 209414
* [msan] Chained origins re-design.Evgeniy Stepanov2014-05-211-2/+2
| | | | | | | | | | | | | | | | | Generalize StackDepot and create a new specialized instance of it to efficiently (i.e. without duplicating stack trace data) store the origin history tree. This reduces memory usage for chained origins roughly by an order of magnitude. Most importantly, this new design allows us to put two limits on stored history data (exposed in MSAN_OPTIONS) that help avoid exponential growth in used memory on certain workloads. See comments in lib/msan/msan_origin.h for more details. llvm-svn: 209284
* [asan] Fix x86 asm instrumentation to preserve flags.Evgeniy Stepanov2014-05-214-24/+67
| | | | | | | | | This change also enables asm instrumentation in asan tests that was accidentally disabled yearlier, and adds a sanity test for that. Patch by Yuri Gorshenin. llvm-svn: 209282
* [ASan Win] Simplify and improve the way we forward ASan interface calls from ↵Timur Iskhodzhanov2014-05-202-58/+112
| | | | | | | | DLLs Reviewed at http://reviews.llvm.org/D3848 llvm-svn: 209210
* [asan] update asan_symbolize.py to use the new llvm-symbolizer flag syntaxKostya Serebryany2014-05-191-1/+1
| | | | llvm-svn: 209116
* [Sanitizer tests] Don't need to use -lstdc++ thanks to --driver-mode=g++Timur Iskhodzhanov2014-05-191-3/+0
| | | | | | Reviewed at http://reviews.llvm.org/D3796 llvm-svn: 209115
* Fix typosAlp Toker2014-05-154-6/+6
| | | | llvm-svn: 208841
* [asan] use some LIKELY/UNLIKELYKostya Serebryany2014-05-147-28/+30
| | | | llvm-svn: 208776
* [ASan/Win] Enable demangling of global variable namesTimur Iskhodzhanov2014-05-141-3/+7
| | | | llvm-svn: 208775
* [asan] Respect personality in kernel area detector, patch by Yuri GribovKostya Serebryany2014-05-141-5/+6
| | | | llvm-svn: 208760
* [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of ↵Timur Iskhodzhanov2014-05-132-7/+1
| | | | | | | | gtest.h conditional Reviewed at http://reviews.llvm.org/D3744 llvm-svn: 208696
* [Sanitizer/ASan tests] Automatically detect the presence of libstdc++Timur Iskhodzhanov2014-05-131-1/+3
| | | | llvm-svn: 208695
* [ASan tests] Add Windows-specific flags to lib/asan/tests/CMakeLists.txtTimur Iskhodzhanov2014-05-131-9/+34
| | | | | | Reviewed at http://reviews.llvm.org/D3720 llvm-svn: 208682
* [Sanitizer tests] Make simple pthread tests compile and pass on WindowsTimur Iskhodzhanov2014-05-131-8/+5
| | | | | | Reviewed at http://reviews.llvm.org/D3725 llvm-svn: 208674
* [ASan] Split static ASan runtime in two parts: asan and asan_cxx.Alexey Samsonov2014-05-126-15/+24
| | | | | | | | | | | asan_cxx containts replacements for new/delete operators, and should only be linked in C++ mode. We plan to start building this part with exception support to make new more standard-compliant. See https://code.google.com/p/address-sanitizer/issues/detail?id=295 for more details. llvm-svn: 208609
* [ASan tests] Don't define __asan_default_options in tests on Windows as it ↵Timur Iskhodzhanov2014-05-121-0/+2
| | | | | | is not supported llvm-svn: 208575
* [ASan] Add references to the issue tracker about malloc/free/new/delete ↵Timur Iskhodzhanov2014-05-121-0/+2
| | | | | | mismatch check on Mac and Windows llvm-svn: 208574
* [ASan tests] Exclude/simplify a bunch of tests to make them build on WindowsTimur Iskhodzhanov2014-05-121-10/+45
| | | | | | (This also requires D3720, D3725 and a few more small changes to land) llvm-svn: 208573
* [ASan tests] Don't run FakeStack.CreateDestroy on Windows as it OOMsTimur Iskhodzhanov2014-05-121-0/+2
| | | | llvm-svn: 208572
* [ASan tests] Use the proper attribute on RunStrChrTest helper functions to ↵Timur Iskhodzhanov2014-05-121-2/+2
| | | | | | avoid "unused function" warnings llvm-svn: 208568
* [asan] Move the "coverage" flag to common flags.Sergey Matveev2014-05-122-7/+3
| | | | | | The implementation lives in sanitizer_common and will need to access that flag. llvm-svn: 208566
* [asan] one more attempt to enable lsan by default (PR19521)Kostya Serebryany2014-05-121-1/+1
| | | | llvm-svn: 208545
* Add FreeBSD support to address sanitizer process mapping facilitiesViktor Kutuzov2014-05-121-0/+20
| | | | llvm-svn: 208537
* [asan] define ASAN_DYNAMIC=1 if PIC is definedKostya Serebryany2014-05-121-1/+5
| | | | llvm-svn: 208530
* [asan] fix a self deadlock when printing stats; add a relevant test, cleanup ↵Kostya Serebryany2014-05-121-0/+2
| | | | | | that test while at it to remove linux/darwin differences. Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=306 llvm-svn: 208525
* [ASan tests] Fix non-Windows breakageTimur Iskhodzhanov2014-05-081-2/+5
| | | | llvm-svn: 208332
* [ASan tests] More progress towards Windows supportTimur Iskhodzhanov2014-05-081-20/+37
| | | | llvm-svn: 208326
* [ASan tests] More progress towards Windows supportTimur Iskhodzhanov2014-05-081-0/+13
| | | | llvm-svn: 208325
* [ASan tests] More progress towards Windows supportTimur Iskhodzhanov2014-05-081-1/+4
| | | | llvm-svn: 208323
* [ASan tests] Auto-define ASAN_NEEDS_SEGV rather than hardcode it in cmakeTimur Iskhodzhanov2014-05-082-2/+5
| | | | llvm-svn: 208322
* [ASan] Update sanitizer_common and asan test_util headers to support ↵Timur Iskhodzhanov2014-05-081-3/+6
| | | | | | building on Windows llvm-svn: 208306
* Ignore stack-buffer-overflow in std::_Find_elem<*> / std::num_get<...>::_GetifldTimur Iskhodzhanov2014-05-071-0/+3
| | | | | | Reviewed at http://reviews.llvm.org/D3650 llvm-svn: 208215
* [sanitizer] Replace a macro with a function.Evgeniy Stepanov2014-05-071-1/+1
| | | | llvm-svn: 208207
* [asan] Include asm instrumentation source in Makefile build.Evgeniy Stepanov2014-05-071-3/+5
| | | | llvm-svn: 208172
* [asan] introduce interface function __sanitizer_verify_contiguous_container ↵Kostya Serebryany2014-05-061-1/+33
| | | | | | to verify annotations in vector-like containers llvm-svn: 208092
* [ASan/Win] Don't crash when ASAN_OPTIONS have disable_core=1Timur Iskhodzhanov2014-05-061-1/+2
| | | | | | Reviewed at http://reviews.llvm.org/D3610 llvm-svn: 208070
* [ASan/Win] Add DLL thunks for the fake stack interfaceTimur Iskhodzhanov2014-05-051-0/+3
| | | | llvm-svn: 207960
* [asan] make AsanCoverage lock-free (and AS-safe)Kostya Serebryany2014-04-301-1/+3
| | | | llvm-svn: 207630
* [asan] split detect_odr_violation into two: =2 detects all ODR violations, ↵Kostya Serebryany2014-04-283-5/+7
| | | | | | =1 detects only those where the variable sizes are different. BTW, the detector seems to be working well and finding nice bugs. Early adopters are welcome. llvm-svn: 207415
* Fix building Asan and common sanitizers tests on FreeBSD 9.2Viktor Kutuzov2014-04-281-0/+5
| | | | llvm-svn: 207408
* [asan] implement an experimental detector of ODR violations. Not tested yet ↵Kostya Serebryany2014-04-255-0/+33
| | | | | | outside of a tiny test, may need tuning. llvm-svn: 207210
* Add DLL thunks for recently-added memcpy, memset and memmove ASan intrinsicsTimur Iskhodzhanov2014-04-241-0/+4
| | | | llvm-svn: 207113
* [ASan] Move the shadow range on 32-bit iOS (and iOS Simulator)Alexander Potapenko2014-04-231-2/+7
| | | | | | | | to 0x40000000-0x60000000 to avoid address space clash with system libraries. The solution has been proposed by tahabekireren@gmail.com in https://code.google.com/p/address-sanitizer/issues/detail?id=210 This is also known to fix some Chromium iOS tests. llvm-svn: 207002
OpenPOWER on IntegriCloud