Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [ASan] Don't die with internal ASan error on large buffer overflows | Alexey Samsonov | 2013-10-14 | 1 | -4/+5 | |
| | | | | | | | | | | | | | | | | | | | | Summary: Out-of-bound access may touch not-yet allocated or already freed and recycled from quarantine chunks. We should treat this situation as a "free-range memory access" and avoid printing any data about that irrelevant chunk (which may be inconsistent). This should fix https://code.google.com/p/address-sanitizer/issues/detail?id=183 Reviewers: kcc Reviewed By: kcc CC: timurrrr, llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1893 llvm-svn: 192581 | |||||
* | [ASan] Don't add SANITIZER_INTERFACE_ATTRIBUTE for internal ASan functions | Alexey Samsonov | 2013-09-17 | 1 | -4/+0 | |
| | | | | llvm-svn: 190860 | |||||
* | Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where ↵ | Timur Iskhodzhanov | 2013-08-13 | 1 | -0/+4 | |
| | | | | | | SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used llvm-svn: 188261 | |||||
* | [asan] move fake stack into a separate .h file; actually disable a failing test | Kostya Serebryany | 2013-04-11 | 1 | -84/+0 | |
| | | | | llvm-svn: 179273 | |||||
* | [asan] nuke the old unused allocator code | Kostya Serebryany | 2013-04-04 | 1 | -17/+1 | |
| | | | | llvm-svn: 178758 | |||||
* | [asan] Switch to allocator2 on Android. | Evgeniy Stepanov | 2013-03-18 | 1 | -5/+1 | |
| | | | | llvm-svn: 177263 | |||||
* | [asan] Revert r176255, r176264. | Evgeniy Stepanov | 2013-03-01 | 1 | -1/+1 | |
| | | | | | | New allocator has 1.5x memory overhead of the old one. llvm-svn: 176340 | |||||
* | [asan] Enable allocator2 on Android. | Evgeniy Stepanov | 2013-02-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 176255 | |||||
* | [asan] Fix off-by-one in AddrIsAtRight. | Evgeniy Stepanov | 2013-02-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 174710 | |||||
* | [ASan] Switch Windows to allocator v2, also fixing some build errors | Timur Iskhodzhanov | 2013-02-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 174707 | |||||
* | [ASan] Move functions using BitScan/clzl to sanitizer_common | Timur Iskhodzhanov | 2013-02-08 | 1 | -45/+0 | |
| | | | | llvm-svn: 174706 | |||||
* | [ASan] Implement asan_mz_size(), asan_mz_force_lock() and ↵ | Alexander Potapenko | 2013-02-07 | 1 | -1/+1 | |
| | | | | | | | | asan_mz_force_unlock() for allocator2. Switch to allocator2 on Darwin. llvm-svn: 174603 | |||||
* | [asan] Fix nonsensical reports of partial right OOB. | Evgeniy Stepanov | 2013-02-05 | 1 | -7/+4 | |
| | | | | | | | | | | In case of partial right OOB, ASan was reporting X is located 0 bytes to the right of [A, B) where X was actually inside [A, B). With this change, ASan will report B as the error address in such case. llvm-svn: 174373 | |||||
* | [asan] fix a crash in asan stats printing (initialize the allocator in ↵ | Kostya Serebryany | 2013-01-28 | 1 | -0/+2 | |
| | | | | | | __asan_init) llvm-svn: 173676 | |||||
* | [asan] enable asan_allocator2 by default on Linux. Will enable it on other ↵ | Kostya Serebryany | 2013-01-15 | 1 | -1/+7 | |
| | | | | | | platforms and remove the old one later, after additional testing. The new allocator is much faster and uses less memory llvm-svn: 172531 | |||||
* | asan: fix the constant for new allocator cache | Dmitry Vyukov | 2013-01-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 172526 | |||||
* | asan: enable allocator version 1 by default | Dmitry Vyukov | 2013-01-14 | 1 | -2/+2 | |
| | | | | llvm-svn: 172392 | |||||
* | asan/tsan: fix memory allocator statistics | Dmitry Vyukov | 2013-01-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 172390 | |||||
* | asan: set ASAN_ALLOCATOR_VERSION=1 back | Dmitry Vyukov | 2013-01-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 172184 | |||||
* | asan: Refactor asan memory quarantine. | Dmitry Vyukov | 2013-01-11 | 1 | -3/+7 | |
| | | | | llvm-svn: 172183 | |||||
* | [sanitizer] add statistics to the allocator; fix lint | Kostya Serebryany | 2012-12-27 | 1 | -1/+4 | |
| | | | | llvm-svn: 171161 | |||||
* | [asan] add a flag alloc_dealloc_mismatch (off by default for now) which ↵ | Kostya Serebryany | 2012-12-21 | 1 | -2/+9 | |
| | | | | | | finds malloc/delete, new/free, new/delete[], etc mismatches llvm-svn: 170869 | |||||
* | [asan] asan_allocator2: don't use TLS and fix calloc | Kostya Serebryany | 2012-12-17 | 1 | -0/+3 | |
| | | | | llvm-svn: 170329 | |||||
* | [asan] implement AsanChunkFifoList via IntrusiveList<AsanChunk> | Kostya Serebryany | 2012-12-17 | 1 | -4/+4 | |
| | | | | llvm-svn: 170313 | |||||
* | [ASan] Fixed a compiler warning. | Alexander Potapenko | 2012-12-12 | 1 | -0/+1 | |
| | | | | llvm-svn: 169972 | |||||
* | ASan: fix lint problems introduced | Timur Iskhodzhanov | 2012-12-11 | 1 | -4/+4 | |
| | | | | llvm-svn: 169857 | |||||
* | Hopefully fix the Windows build (2) | Timur Iskhodzhanov | 2012-12-11 | 1 | -0/+2 | |
| | | | | llvm-svn: 169856 | |||||
* | Hopefully fix the Windows build by not including intrin.h | Timur Iskhodzhanov | 2012-12-11 | 1 | -1/+6 | |
| | | | | llvm-svn: 169855 | |||||
* | [asan] more sceleton code for asan_allocator2 | Kostya Serebryany | 2012-12-11 | 1 | -3/+25 | |
| | | | | llvm-svn: 169836 | |||||
* | [asan] fix the Windows build | Kostya Serebryany | 2012-12-11 | 1 | -0/+3 | |
| | | | | llvm-svn: 169828 | |||||
* | [asan] move FakeStack into a separate file | Kostya Serebryany | 2012-12-10 | 1 | -0/+35 | |
| | | | | llvm-svn: 169734 | |||||
* | [asan] introduce asan_allocator2.cc, which will have the replacement for ↵ | Kostya Serebryany | 2012-12-10 | 1 | -0/+6 | |
| | | | | | | asan allocator (now, just a bit of boilerplate) llvm-svn: 169733 | |||||
* | [ASan] Move printing descriptions of heap addresses in error report from ↵ | Alexey Samsonov | 2012-09-18 | 1 | -0/+20 | |
| | | | | | | allocator internals to asan_report.cc. llvm-svn: 164112 | |||||
* | Whitespace/lint | Alexey Samsonov | 2012-08-30 | 1 | -0/+1 | |
| | | | | llvm-svn: 162909 | |||||
* | [asan] some renaming before we move StackTrace into sanitizer_common | Kostya Serebryany | 2012-08-28 | 1 | -9/+9 | |
| | | | | llvm-svn: 162747 | |||||
* | [ASan] move some functions that describe addresses to asan_report.cc | Alexey Samsonov | 2012-08-09 | 1 | -1/+0 | |
| | | | | llvm-svn: 161571 | |||||
* | [asan] more renaming | Kostya Serebryany | 2012-05-31 | 1 | -2/+2 | |
| | | | | llvm-svn: 157747 | |||||
* | [asan] more renaming | Kostya Serebryany | 2012-05-31 | 1 | -31/+31 | |
| | | | | llvm-svn: 157746 | |||||
* | Check that the FakeStack size is non-zero before looking into it. | Alexander Potapenko | 2012-02-21 | 1 | -0/+1 | |
| | | | | | | Sometimes DescribeStackAddress is called before another thread's FakeStack is initialized, which could previously cause a check to fire. llvm-svn: 151046 | |||||
* | AddressSanitizer: replace all "real_X" calls with "REAL(X)" | Alexey Samsonov | 2012-02-08 | 1 | -2/+2 | |
| | | | | llvm-svn: 150073 | |||||
* | AddressSanitizer: add support for malloc_usable_size() function | Alexey Samsonov | 2012-01-17 | 1 | -3/+4 | |
| | | | | llvm-svn: 148287 | |||||
* | [asan] make use-after-return mode more robust: allow to call instrumented ↵ | Kostya Serebryany | 2011-12-09 | 1 | -0/+1 | |
| | | | | | | functions while reporting an error llvm-svn: 146231 | |||||
* | fix asan-rt build on Mac. Patch by glider@google.com | Kostya Serebryany | 2011-11-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 145496 | |||||
* | AddressSanitizer run-time library. Not yet integrated with the compiler-rt ↵ | Kostya Serebryany | 2011-11-30 | 1 | -0/+156 | |
build system, but can be built using the old makefile. See details in README.txt llvm-svn: 145463 |