Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [asan] disable lsan back. :( -- It appears that quite a few lit tests have ↵ | Kostya Serebryany | 2014-04-23 | 1 | -1/+1 | |
| | | | | | | leaks and they were not covered by out buildbot llvm-svn: 206955 | |||||
* | [asan] enable LeakSanitizer (LSan) by default in asan. This only affects ↵ | Kostya Serebryany | 2014-04-22 | 1 | -3/+2 | |
| | | | | | | Linux x86_64. LSan has been used in various projects for more than half a year and we now consider it quite stable to be on by default. llvm-svn: 206896 | |||||
* | [asan] add a run-time flag detect_container_overflow=true/false | Kostya Serebryany | 2014-04-21 | 4 | -1/+9 | |
| | | | | llvm-svn: 206753 | |||||
* | [asan] add __asan_memset and friends | Kostya Serebryany | 2014-04-21 | 2 | -27/+42 | |
| | | | | llvm-svn: 206748 | |||||
* | [asan] add one more mode to run asan tests with '-with-calls', i.e. using ↵ | Kostya Serebryany | 2014-04-21 | 1 | -20/+22 | |
| | | | | | | -mllvm -asan-instrumentation-with-call-threshold=0. This is very unfortunate since it effectively doubles the number of gunit asan tests that need to be built and run, but as long as we need out-lined calls (PR17409) I see no other way to test this workaround llvm-svn: 206742 | |||||
* | [asan] implement __asan_loadN/__asan_storeN for out-lined asan checks | Kostya Serebryany | 2014-04-21 | 2 | -3/+22 | |
| | | | | llvm-svn: 206733 | |||||
* | [asan] Reenable tests that should pass since PR19207 is fixed. | Evgeniy Stepanov | 2014-04-18 | 1 | -5/+3 | |
| | | | | llvm-svn: 206593 | |||||
* | [ASan] Change AddressSanitizer.LoadStoreCallbacks to use asan_malloc and ↵ | Alexander Potapenko | 2014-04-17 | 1 | -2/+11 | |
| | | | | | | | | | asan_free. Interceptors don't really work on OSX in asan_noinst_test.cc (this is more or less intentional), so one shouldn't call intercepted functions in this test -- added a comment about this. llvm-svn: 206477 | |||||
* | [asan] fix a bug in outlined asan checks and in the corresponding test (ouch) | Kostya Serebryany | 2014-04-17 | 2 | -2/+3 | |
| | | | | llvm-svn: 206470 | |||||
* | [asan] add __asan_load1/__asan_store1/... callbacks to asan-rt; together ↵ | Kostya Serebryany | 2014-04-16 | 3 | -0/+82 | |
| | | | | | | with -mllvm -asan-instrumentation-with-call-threshold=N this will be a workaround for PR17409 llvm-svn: 206387 | |||||
* | [asan] fix the alloctor code to not use opaque data structure, which was ↵ | Kostya Serebryany | 2014-04-15 | 2 | -55/+57 | |
| | | | | | | larger than needed. This was a leftover of the allocator1=>allocator2 migration; thanks Yuri Gribov for reminding llvm-svn: 206280 | |||||
* | [asan] added internal flag mmap_limit_mb | Kostya Serebryany | 2014-04-14 | 1 | -0/+1 | |
| | | | | llvm-svn: 206178 | |||||
* | [asan] don't use bool in public interface, make sure the interface headers ↵ | Kostya Serebryany | 2014-04-14 | 4 | -7/+7 | |
| | | | | | | are usable in plain C llvm-svn: 206160 | |||||
* | [asan] provide better reports for cases where memcpy/etc get negative size ↵ | Kostya Serebryany | 2014-04-14 | 4 | -0/+20 | |
| | | | | | | parameter. Also fix a typo found by Tetsuo Kiso llvm-svn: 206158 | |||||
* | Declare _DYNAMIC and dl_phdr_info in asan_linux.cc on FreeBSD | Viktor Kutuzov | 2014-04-09 | 1 | -1/+5 | |
| | | | | llvm-svn: 205852 | |||||
* | [asan] fix a leak in __tls_get_addr handler; introduce a run-time flag to ↵ | Kostya Serebryany | 2014-04-04 | 1 | -0/+1 | |
| | | | | | | disable this handler completely; remove a workaround for a bug fixed in glibc llvm-svn: 205617 | |||||
* | [ASan] Fix incompatible runtimes check: don't iterate /proc/self/maps on ↵ | Alexey Samsonov | 2014-04-02 | 1 | -17/+22 | |
| | | | | | | every call to __asan_init llvm-svn: 205418 | |||||
* | [ASan] One more attempt to fix Android build | Alexey Samsonov | 2014-04-02 | 1 | -7/+6 | |
| | | | | llvm-svn: 205411 | |||||
* | [ASan] Fix Android build | Alexey Samsonov | 2014-04-01 | 1 | -0/+2 | |
| | | | | llvm-svn: 205311 | |||||
* | [ASan] Optional support for dynamic ASan runtime on Linux. | Alexey Samsonov | 2014-04-01 | 7 | -6/+171 | |
| | | | | | | Based on http://llvm-reviews.chandlerc.com/D3042 by Yuri Gribov! llvm-svn: 205308 | |||||
* | [CMake] Rename add_compiler_rt_static_runtime to add_compiler_rt_runtime. | Alexey Samsonov | 2014-03-31 | 1 | -5/+5 | |
| | | | | | | | | Soon there will be an option to build compiler-rt parts as shared libraries on Linux. Extracted from http://llvm-reviews.chandlerc.com/D3042 by Yuri Gribov. llvm-svn: 205183 | |||||
* | Add support for _expand[_dbg] so we don't crash when _aligned_* allocation ↵ | Timur Iskhodzhanov | 2014-03-27 | 2 | -0/+20 | |
| | | | | | | functions are used llvm-svn: 204925 | |||||
* | [asan] Do not sanitize kernel area on 32-bit targets, patch by Yuri Gribov | Kostya Serebryany | 2014-03-27 | 2 | -1/+11 | |
| | | | | llvm-svn: 204897 | |||||
* | [ASan] Fix a thinko spotted by Evgeniy Stepanov: use REAL(memcpy) on non-OSX ↵ | Alexander Potapenko | 2014-03-26 | 1 | -4/+1 | |
| | | | | | | systems. llvm-svn: 204794 | |||||
* | [CMake] Rename the variable | Alexey Samsonov | 2014-03-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 204602 | |||||
* | [CMake] Respect CMAKE_CXX_FLAGS in custom clang_compile commands | Alexey Samsonov | 2014-03-24 | 1 | -5/+3 | |
| | | | | llvm-svn: 204593 | |||||
* | [asan] Disable setjmp/sigsetjmp tests. | Evgeniy Stepanov | 2014-03-24 | 1 | -3/+5 | |
| | | | | | | Failing due to PR19207. llvm-svn: 204590 | |||||
* | [asan] Fix a comment. | Evgeniy Stepanov | 2014-03-24 | 1 | -2/+3 | |
| | | | | llvm-svn: 204589 | |||||
* | [ASan] Move the flag descriptions from comments to ParseFlag arguments. | Alexander Potapenko | 2014-03-21 | 2 | -93/+116 | |
| | | | | llvm-svn: 204440 | |||||
* | [libsanitizer] Introduce flag descriptions. | Alexander Potapenko | 2014-03-20 | 1 | -35/+40 | |
| | | | | | | | | | Extend ParseFlag to accept the |description| parameter, add dummy values for all existing flags. As the flags are parsed their descriptions are stored in a global linked list. The tool can later call __sanitizer::PrintFlagDescriptions() to dump all the flag names and their descriptions. Add the 'help' flag and make ASan, TSan and MSan print the flags if 'help' is set to 1. llvm-svn: 204339 | |||||
* | [CMake] Fix build of ASan tests on Mac | Alexey Samsonov | 2014-03-19 | 1 | -4/+3 | |
| | | | | llvm-svn: 204238 | |||||
* | [CMake] Build sanitizer unit tests with -std=c++11 | Alexey Samsonov | 2014-03-19 | 1 | -0/+1 | |
| | | | | llvm-svn: 204234 | |||||
* | [ASan] Remove the unneeded ASAN_RUNTIME_LDFLAGS. | Alexander Potapenko | 2014-03-14 | 1 | -2/+1 | |
| | | | | llvm-svn: 203913 | |||||
* | Work around PR19125: -Wconstant-logical-operand false positive | Timur Iskhodzhanov | 2014-03-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 203782 | |||||
* | Disable fast shadow zero'ing on Windows | Timur Iskhodzhanov | 2014-03-13 | 1 | -0/+5 | |
| | | | | llvm-svn: 203778 | |||||
* | FastPoisonShadow: check for MmapFixedNoReserve failures | Timur Iskhodzhanov | 2014-03-13 | 1 | -1/+2 | |
| | | | | llvm-svn: 203776 | |||||
* | [CMake] Make append_if semantics similar to those used in LLVM | Alexey Samsonov | 2014-03-13 | 1 | -3/+3 | |
| | | | | llvm-svn: 203773 | |||||
* | Add FreeBSD 9.2 support to asan_linux.cc | Viktor Kutuzov | 2014-03-12 | 1 | -0/+11 | |
| | | | | llvm-svn: 203658 | |||||
* | [ASan] Don't build the ASan runtime with -undefined dynamic_lookup, which ↵ | Alexander Potapenko | 2014-03-11 | 1 | -4/+0 | |
| | | | | | | | | isn't necessary anymore. Fixes https://code.google.com/p/address-sanitizer/issues/detail?id=266. llvm-svn: 203572 | |||||
* | [ASan] Better way to disable tests for functions unavailable on certain ↵ | Alexey Samsonov | 2014-03-07 | 2 | -31/+14 | |
| | | | | | | platforms llvm-svn: 203224 | |||||
* | [sanitizer] Simplify interceptors with user callbacks. | Evgeniy Stepanov | 2014-03-06 | 1 | -3/+0 | |
| | | | | | | | Get rid of the context argument in UNPOISON_PARAM and INITIALIZE_RANGE. Get rid of all the thread-local contexts in interceptors. llvm-svn: 203119 | |||||
* | [FreeBSD] Provide FreeBSD-specific things for ASan. | Alexey Samsonov | 2014-03-06 | 1 | -8/+22 | |
| | | | | | | Patch by Viktor Kutuzov! llvm-svn: 203100 | |||||
* | asan_symbolize.py: use llvm-symbolizer results even if it returned function ↵ | Alexey Samsonov | 2014-03-05 | 1 | -2/+2 | |
| | | | | | | name w/o file/line info llvm-svn: 202983 | |||||
* | Improve llvm-symbolizer discovery in asan_symbolize.py | Alexey Samsonov | 2014-03-05 | 1 | -17/+24 | |
| | | | | llvm-svn: 202982 | |||||
* | Fix StackTrace::LocatePcInTrace, add more unit tests for generic StackTrace | Alexey Samsonov | 2014-03-04 | 1 | -2/+2 | |
| | | | | llvm-svn: 202849 | |||||
* | [CMake] Test for libdl and libpthread presence | Alexey Samsonov | 2014-03-04 | 1 | -5/+3 | |
| | | | | llvm-svn: 202847 | |||||
* | [ASan] Speed up stack trace unwinding for stacks of size 2. | Alexey Samsonov | 2014-03-04 | 4 | -28/+45 | |
| | | | | | | | | | | | | | | | | Summary: We don't need to do any work in this case - just take the current PC and caller PC. Reviewers: eugenis, ygribov Reviewed By: eugenis CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2936 llvm-svn: 202845 | |||||
* | A set of trivial changes to support sanitizers on FreeBSD. | Alexey Samsonov | 2014-03-04 | 4 | -6/+6 | |
| | | | | | | Patch by Viktor Kutuzov! llvm-svn: 202801 | |||||
* | [asan] *experimental* implementation of invalid-pointer-pair detector (finds ↵ | Kostya Serebryany | 2014-02-27 | 4 | -0/+47 | |
| | | | | | | when two unrelated pointers are compared or subtracted). This implementation has both false positives and false negatives and is not tuned for performance. A bug report for a proper implementation will follow. llvm-svn: 202389 | |||||
* | [asan] Install asan_device_setup to bin/ when targetting Android. | Evgeniy Stepanov | 2014-02-27 | 2 | -0/+6 | |
| | | | | | | | | | | asan_device_setup is a utility that prepares a device to run code built with ASan. Essentially, it installs ASan runtime library into the system. For this reason, it has to be at a predictable relative path from the runtime library itself. We also plan to distribute this utility, packaged with runtime library and maybe llvm-symbolizer, to the users. llvm-svn: 202362 |