summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan
Commit message (Collapse)AuthorAgeFilesLines
...
* [asan] disable lsan back. :( -- It appears that quite a few lit tests have ↵Kostya Serebryany2014-04-231-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 Serebryany2014-04-221-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/falseKostya Serebryany2014-04-214-1/+9
| | | | llvm-svn: 206753
* [asan] add __asan_memset and friendsKostya Serebryany2014-04-212-27/+42
| | | | llvm-svn: 206748
* [asan] add one more mode to run asan tests with '-with-calls', i.e. using ↵Kostya Serebryany2014-04-211-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 checksKostya Serebryany2014-04-212-3/+22
| | | | llvm-svn: 206733
* [asan] Reenable tests that should pass since PR19207 is fixed.Evgeniy Stepanov2014-04-181-5/+3
| | | | llvm-svn: 206593
* [ASan] Change AddressSanitizer.LoadStoreCallbacks to use asan_malloc and ↵Alexander Potapenko2014-04-171-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 Serebryany2014-04-172-2/+3
| | | | llvm-svn: 206470
* [asan] add __asan_load1/__asan_store1/... callbacks to asan-rt; together ↵Kostya Serebryany2014-04-163-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 Serebryany2014-04-152-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_mbKostya Serebryany2014-04-141-0/+1
| | | | llvm-svn: 206178
* [asan] don't use bool in public interface, make sure the interface headers ↵Kostya Serebryany2014-04-144-7/+7
| | | | | | are usable in plain C llvm-svn: 206160
* [asan] provide better reports for cases where memcpy/etc get negative size ↵Kostya Serebryany2014-04-144-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 FreeBSDViktor Kutuzov2014-04-091-1/+5
| | | | llvm-svn: 205852
* [asan] fix a leak in __tls_get_addr handler; introduce a run-time flag to ↵Kostya Serebryany2014-04-041-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 Samsonov2014-04-021-17/+22
| | | | | | every call to __asan_init llvm-svn: 205418
* [ASan] One more attempt to fix Android buildAlexey Samsonov2014-04-021-7/+6
| | | | llvm-svn: 205411
* [ASan] Fix Android buildAlexey Samsonov2014-04-011-0/+2
| | | | llvm-svn: 205311
* [ASan] Optional support for dynamic ASan runtime on Linux.Alexey Samsonov2014-04-017-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 Samsonov2014-03-311-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 Iskhodzhanov2014-03-272-0/+20
| | | | | | functions are used llvm-svn: 204925
* [asan] Do not sanitize kernel area on 32-bit targets, patch by Yuri GribovKostya Serebryany2014-03-272-1/+11
| | | | llvm-svn: 204897
* [ASan] Fix a thinko spotted by Evgeniy Stepanov: use REAL(memcpy) on non-OSX ↵Alexander Potapenko2014-03-261-4/+1
| | | | | | systems. llvm-svn: 204794
* [CMake] Rename the variableAlexey Samsonov2014-03-241-1/+1
| | | | llvm-svn: 204602
* [CMake] Respect CMAKE_CXX_FLAGS in custom clang_compile commandsAlexey Samsonov2014-03-241-5/+3
| | | | llvm-svn: 204593
* [asan] Disable setjmp/sigsetjmp tests.Evgeniy Stepanov2014-03-241-3/+5
| | | | | | Failing due to PR19207. llvm-svn: 204590
* [asan] Fix a comment.Evgeniy Stepanov2014-03-241-2/+3
| | | | llvm-svn: 204589
* [ASan] Move the flag descriptions from comments to ParseFlag arguments.Alexander Potapenko2014-03-212-93/+116
| | | | llvm-svn: 204440
* [libsanitizer] Introduce flag descriptions.Alexander Potapenko2014-03-201-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 MacAlexey Samsonov2014-03-191-4/+3
| | | | llvm-svn: 204238
* [CMake] Build sanitizer unit tests with -std=c++11Alexey Samsonov2014-03-191-0/+1
| | | | llvm-svn: 204234
* [ASan] Remove the unneeded ASAN_RUNTIME_LDFLAGS.Alexander Potapenko2014-03-141-2/+1
| | | | llvm-svn: 203913
* Work around PR19125: -Wconstant-logical-operand false positiveTimur Iskhodzhanov2014-03-131-1/+1
| | | | llvm-svn: 203782
* Disable fast shadow zero'ing on WindowsTimur Iskhodzhanov2014-03-131-0/+5
| | | | llvm-svn: 203778
* FastPoisonShadow: check for MmapFixedNoReserve failuresTimur Iskhodzhanov2014-03-131-1/+2
| | | | llvm-svn: 203776
* [CMake] Make append_if semantics similar to those used in LLVMAlexey Samsonov2014-03-131-3/+3
| | | | llvm-svn: 203773
* Add FreeBSD 9.2 support to asan_linux.ccViktor Kutuzov2014-03-121-0/+11
| | | | llvm-svn: 203658
* [ASan] Don't build the ASan runtime with -undefined dynamic_lookup, which ↵Alexander Potapenko2014-03-111-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 Samsonov2014-03-072-31/+14
| | | | | | platforms llvm-svn: 203224
* [sanitizer] Simplify interceptors with user callbacks.Evgeniy Stepanov2014-03-061-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 Samsonov2014-03-061-8/+22
| | | | | | Patch by Viktor Kutuzov! llvm-svn: 203100
* asan_symbolize.py: use llvm-symbolizer results even if it returned function ↵Alexey Samsonov2014-03-051-2/+2
| | | | | | name w/o file/line info llvm-svn: 202983
* Improve llvm-symbolizer discovery in asan_symbolize.pyAlexey Samsonov2014-03-051-17/+24
| | | | llvm-svn: 202982
* Fix StackTrace::LocatePcInTrace, add more unit tests for generic StackTraceAlexey Samsonov2014-03-041-2/+2
| | | | llvm-svn: 202849
* [CMake] Test for libdl and libpthread presenceAlexey Samsonov2014-03-041-5/+3
| | | | llvm-svn: 202847
* [ASan] Speed up stack trace unwinding for stacks of size 2.Alexey Samsonov2014-03-044-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 Samsonov2014-03-044-6/+6
| | | | | | Patch by Viktor Kutuzov! llvm-svn: 202801
* [asan] *experimental* implementation of invalid-pointer-pair detector (finds ↵Kostya Serebryany2014-02-274-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 Stepanov2014-02-272-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
OpenPOWER on IntegriCloud