- Jun 06, 2013
-
-
Sergey Matveev authored
llvm-svn: 183429
-
Sergey Matveev authored
Leak annotation similar to HeapChecker's IgnoreObject(). llvm-svn: 183412
-
Alexey Samsonov authored
llvm-svn: 183390
-
- Jun 04, 2013
-
-
Alexey Samsonov authored
Summary: With this change, the user may safely call __asan_get_ownership() from malloc/free hooks and assume it would return "true". If there is a realloc/free race, free hook might be called twice, but I think it's acceptable, as it's a data race and would later be reported anyway. This change also fixes a bug when failing realloc incorrectly marked the original memory as "quarantinned". Reviewers: timurrrr, kcc, samsonov Reviewed By: samsonov CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D913 llvm-svn: 183220
-
Sergey Matveev authored
llvm-svn: 183218
-
- Jun 03, 2013
-
-
Sergey Matveev authored
Objects allocated after a call to __lsan_disable() will be treated as live memory. Also add a ScopedDisabler. llvm-svn: 183099
-
- May 31, 2013
-
-
Sergey Matveev authored
llvm-svn: 182994
-
- May 27, 2013
-
-
Sergey Matveev authored
In this CL all old tests are removed and one LIT test is added. llvm-svn: 182730
-
- May 22, 2013
-
-
Alexey Samsonov authored
llvm-svn: 182470
-
Alexey Samsonov authored
llvm-svn: 182465
-
- May 21, 2013
-
-
Sergey Matveev authored
llvm-svn: 182379
-
- May 20, 2013
-
-
Timur Iskhodzhanov authored
See https://code.google.com/p/address-sanitizer/issues/detail?id=187 for the details llvm-svn: 182255
-
Sergey Matveev authored
We need this to avoid races when ASan and LSan are used together. llvm-svn: 182252
-
Timur Iskhodzhanov authored
Also fix wrong alignment maths and an outdated comment llvm-svn: 182238
-
Kostya Serebryany authored
[sanitizer] factor out ByteMap from SizeClassAllocator32 so that it can be later replaced with a more memory-efficient implementation on 64-bit. llvm-svn: 182234
-
- May 18, 2013
-
-
Timur Iskhodzhanov authored
llvm-svn: 182198
-
- May 15, 2013
-
-
Kostya Serebryany authored
llvm-svn: 181881
-
- May 06, 2013
-
-
Sergey Matveev authored
Some flags that are common to ASan/MSan/TSan/LSan have been moved to sanitizer_common. llvm-svn: 181193
-
- Apr 04, 2013
-
-
Kostya Serebryany authored
llvm-svn: 178758
-
Kostya Serebryany authored
[asan] fill first 4K of malloc-ed memory with garbage, implement flags max_malloc_fill_size and malloc_fill_byte llvm-svn: 178757
-
- Mar 28, 2013
-
-
Alexey Samsonov authored
[ASan] Speed-up initialization-order checking: create and use fast versions of PoisonShadow functions, store copies of __asan_global descriptors in a vector instead of list of pointers. This gives 3x speedup on both benchmarks and real binaries with lots of globals. llvm-svn: 178239
-
- Mar 22, 2013
-
-
Timur Iskhodzhanov authored
llvm-svn: 177746
-
Timur Iskhodzhanov authored
Band-aid fix for the Windows build caused by r177710. Long-term, atomic_compare_exchange_strong should be a template on Windows too... llvm-svn: 177745
-
Alexey Samsonov authored
[ASan] Fix an error on invalid deallocation in ASan allocator. When ASan checks if memory freed by user was indeed previously allocated, it first does an atomic write to presumed location of chunk header. This is wrong, as if the free is invalid, we may overwrite some valuable data (like other fields of the chunk header). Fix this by using atomic_compare_exchange instead. llvm-svn: 177710
-
- Mar 21, 2013
-
-
Alexey Samsonov authored
[ASan] Switch ASan to generic ThreadRegistry from sanitizer_common. Delete ASan-specific AsanThreadRegistry. llvm-svn: 177634
-
- Mar 20, 2013
-
-
Alexey Samsonov authored
llvm-svn: 177508
-
Alexey Samsonov authored
[ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry llvm-svn: 177501
-
- Mar 12, 2013
-
-
Kostya Serebryany authored
[asan] use 4Tb of address space for the asan allocator instead of 1Tb. This increases the memory available for a single size class from 16Gb to 64Gb. The total VM footprint becomes 20Tb llvm-svn: 176857
-
- Feb 27, 2013
-
-
Kostya Serebryany authored
[asan] if calloc returns a freshly-mmaped memory, don't clear it with memset. Speeds up calloc-intensive code llvm-svn: 176185
-
- Feb 26, 2013
-
-
Kostya Serebryany authored
llvm-svn: 176085
-
- Feb 08, 2013
-
-
Timur Iskhodzhanov authored
llvm-svn: 174707
-
- Feb 07, 2013
-
-
Alexander Potapenko authored
Switch to allocator2 on Darwin. llvm-svn: 174603
-
- Feb 05, 2013
-
-
Evgeniy Stepanov authored
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
-
- Jan 31, 2013
-
-
Alexey Samsonov authored
[ASan] Split ASan interface header into private and public parts. Add a test that makes sure users can include interface header llvm-svn: 174058
-
- Jan 29, 2013
-
-
Alexey Samsonov authored
[ASan] fix deallocation hook in allocator2: according to specification, dealloc hook should be called before deallocating memory llvm-svn: 173778
-
Alexey Samsonov authored
[ASan] Do allocate memory even for zero-size allocation requests. Explain why we have to do this in comments. llvm-svn: 173776
-
- Jan 28, 2013
-
-
Alexey Samsonov authored
llvm-svn: 173681
-
Kostya Serebryany authored
llvm-svn: 173676
-
- Jan 25, 2013
-
-
Kostya Serebryany authored
llvm-svn: 173441
-
- Jan 23, 2013
-
-
Kostya Serebryany authored
[asan] initialize kHighMemEnd at startup (instead of at compile time) to simplify further changes for various address space layouts. Fix asan_allocator2 for PowerPC (tested on 44-bit address space) llvm-svn: 173260
-