summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_allocator.h
Commit message (Collapse)AuthorAgeFilesLines
...
* [ASan] Don't die with internal ASan error on large buffer overflowsAlexey Samsonov2013-10-141-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 functionsAlexey Samsonov2013-09-171-4/+0
| | | | llvm-svn: 190860
* Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where ↵Timur Iskhodzhanov2013-08-131-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 testKostya Serebryany2013-04-111-84/+0
| | | | llvm-svn: 179273
* [asan] nuke the old unused allocator codeKostya Serebryany2013-04-041-17/+1
| | | | llvm-svn: 178758
* [asan] Switch to allocator2 on Android.Evgeniy Stepanov2013-03-181-5/+1
| | | | llvm-svn: 177263
* [asan] Revert r176255, r176264.Evgeniy Stepanov2013-03-011-1/+1
| | | | | | New allocator has 1.5x memory overhead of the old one. llvm-svn: 176340
* [asan] Enable allocator2 on Android.Evgeniy Stepanov2013-02-281-1/+1
| | | | llvm-svn: 176255
* [asan] Fix off-by-one in AddrIsAtRight.Evgeniy Stepanov2013-02-081-1/+1
| | | | llvm-svn: 174710
* [ASan] Switch Windows to allocator v2, also fixing some build errorsTimur Iskhodzhanov2013-02-081-1/+1
| | | | llvm-svn: 174707
* [ASan] Move functions using BitScan/clzl to sanitizer_commonTimur Iskhodzhanov2013-02-081-45/+0
| | | | llvm-svn: 174706
* [ASan] Implement asan_mz_size(), asan_mz_force_lock() and ↵Alexander Potapenko2013-02-071-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 Stepanov2013-02-051-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 Serebryany2013-01-281-0/+2
| | | | | | __asan_init) llvm-svn: 173676
* [asan] enable asan_allocator2 by default on Linux. Will enable it on other ↵Kostya Serebryany2013-01-151-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 cacheDmitry Vyukov2013-01-151-1/+1
| | | | llvm-svn: 172526
* asan: enable allocator version 1 by defaultDmitry Vyukov2013-01-141-2/+2
| | | | llvm-svn: 172392
* asan/tsan: fix memory allocator statisticsDmitry Vyukov2013-01-141-1/+1
| | | | llvm-svn: 172390
* asan: set ASAN_ALLOCATOR_VERSION=1 backDmitry Vyukov2013-01-111-1/+1
| | | | llvm-svn: 172184
* asan: Refactor asan memory quarantine.Dmitry Vyukov2013-01-111-3/+7
| | | | llvm-svn: 172183
* [sanitizer] add statistics to the allocator; fix lintKostya Serebryany2012-12-271-1/+4
| | | | llvm-svn: 171161
* [asan] add a flag alloc_dealloc_mismatch (off by default for now) which ↵Kostya Serebryany2012-12-211-2/+9
| | | | | | finds malloc/delete, new/free, new/delete[], etc mismatches llvm-svn: 170869
* [asan] asan_allocator2: don't use TLS and fix callocKostya Serebryany2012-12-171-0/+3
| | | | llvm-svn: 170329
* [asan] implement AsanChunkFifoList via IntrusiveList<AsanChunk>Kostya Serebryany2012-12-171-4/+4
| | | | llvm-svn: 170313
* [ASan] Fixed a compiler warning.Alexander Potapenko2012-12-121-0/+1
| | | | llvm-svn: 169972
* ASan: fix lint problems introducedTimur Iskhodzhanov2012-12-111-4/+4
| | | | llvm-svn: 169857
* Hopefully fix the Windows build (2)Timur Iskhodzhanov2012-12-111-0/+2
| | | | llvm-svn: 169856
* Hopefully fix the Windows build by not including intrin.hTimur Iskhodzhanov2012-12-111-1/+6
| | | | llvm-svn: 169855
* [asan] more sceleton code for asan_allocator2Kostya Serebryany2012-12-111-3/+25
| | | | llvm-svn: 169836
* [asan] fix the Windows buildKostya Serebryany2012-12-111-0/+3
| | | | llvm-svn: 169828
* [asan] move FakeStack into a separate fileKostya Serebryany2012-12-101-0/+35
| | | | llvm-svn: 169734
* [asan] introduce asan_allocator2.cc, which will have the replacement for ↵Kostya Serebryany2012-12-101-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 Samsonov2012-09-181-0/+20
| | | | | | allocator internals to asan_report.cc. llvm-svn: 164112
* Whitespace/lintAlexey Samsonov2012-08-301-0/+1
| | | | llvm-svn: 162909
* [asan] some renaming before we move StackTrace into sanitizer_commonKostya Serebryany2012-08-281-9/+9
| | | | llvm-svn: 162747
* [ASan] move some functions that describe addresses to asan_report.ccAlexey Samsonov2012-08-091-1/+0
| | | | llvm-svn: 161571
* [asan] more renamingKostya Serebryany2012-05-311-2/+2
| | | | llvm-svn: 157747
* [asan] more renamingKostya Serebryany2012-05-311-31/+31
| | | | llvm-svn: 157746
* Check that the FakeStack size is non-zero before looking into it.Alexander Potapenko2012-02-211-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 Samsonov2012-02-081-2/+2
| | | | llvm-svn: 150073
* AddressSanitizer: add support for malloc_usable_size() functionAlexey Samsonov2012-01-171-3/+4
| | | | llvm-svn: 148287
* [asan] make use-after-return mode more robust: allow to call instrumented ↵Kostya Serebryany2011-12-091-0/+1
| | | | | | functions while reporting an error llvm-svn: 146231
* fix asan-rt build on Mac. Patch by glider@google.comKostya Serebryany2011-11-301-1/+1
| | | | llvm-svn: 145496
* AddressSanitizer run-time library. Not yet integrated with the compiler-rt ↵Kostya Serebryany2011-11-301-0/+156
build system, but can be built using the old makefile. See details in README.txt llvm-svn: 145463
OpenPOWER on IntegriCloud