History log of /external/compiler-rt/lib/asan/asan_malloc_mac.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
86277eb844c4983c81de62d7c050e92fe7155788 23-Mar-2015 Stephen Hines <srhines@google.com> Update aosp/master compiler-rt for rebase to r230699.

Change-Id: I6c415fd5f6420e3012d9da76719111721e906dfa
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
e1f1661581889fb2fdd9a33f83cba414ea529294 04-Jul-2013 Alexander Potapenko <glider@google.com> [ASan] Do not protect the malloc zone created by malloc_zone_create() on Snow Leopard and earlier systems.
Fixes https://code.google.com/p/address-sanitizer/issues/detail?id=208


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185621 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
6b233edfdb741fa75faec815ff3940724e8126a5 28-Jun-2013 Alexander Potapenko <glider@google.com> [ASan][OSX] Make sure the zones created by malloc_create_zone() are write-protected.
Add a test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185140 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
66ad412170787fb0d9f4832708a22d47d74633c5 28-Jun-2013 Alexander Potapenko <glider@google.com> [ASan][OSX] Fix the incorrect malloc_create_zone() implementation that led to out-of-bounds mprotect()s
(https://code.google.com/p/address-sanitizer/issues/detail?id=203)
Add a test.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
649a270f5341efe9c57f473dbb78706b0b2ed523 03-Apr-2013 Alexey Samsonov <samsonov@google.com> [ASan] Kill the remainders of platform defines in favor of SANITIZER_ defines

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178629 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
def1be9b7ef4091ce465c0fbfb26cdb52128ade8 21-Mar-2013 Alexey Samsonov <samsonov@google.com> [ASan] Switch ASan to generic ThreadRegistry from sanitizer_common. Delete ASan-specific AsanThreadRegistry.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177634 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
c25e62b0cdbca855e7611583b0ff7013c31db21d 20-Mar-2013 Alexey Samsonov <samsonov@google.com> [ASan] Move malloc stats collection away from AsanThreadRegistry class.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
30e110edf92303237d471f1cb8e3ad07954fb145 19-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] More renamed macros.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177401 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
24e13723f8477d8c42ab8b2a7f4f69fc089842f1 19-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Replace more platform checks with SANITIZER_ constants.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
eba4803ab538007a63d149faf92afc00f73c5128 22-Jan-2013 Alexander Potapenko <glider@google.com> [ASan] Use dylib interposition to hook memory allocation in the dynamic runtime.
This CL drastically simplifies the way we're hooking the memory allocation routines in ASan on Mac by using dylib interposition to replace the main malloc_zone_* functions. This allows us to avoid replacing the default CFAllocator and drop the CF dependency at all.

Committing this patch will result in the static runtime being broken. A follow-up CL will switch ASan to use the dynamic runtime library.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173134 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
fe6d91684bcda766593800f6307233f1a33d31f6 21-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add a flag alloc_dealloc_mismatch (off by default for now) which finds malloc/delete, new/free, new/delete[], etc mismatches

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170869 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
a1ff0d114ecec5811b9eff28586b3ab902028d30 13-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] fix mac build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170118 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
a30c8f9eac981dcf137e84226810b760e35c7be1 13-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add two asan flags: fast_unwind_on_fatal and fast_unwind_on_malloc to allow using the slow CFI-based unwinder

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170117 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
f67ec2b6e8d2ae328c27de0b026eea2d6667836e 23-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] get rid of some of the uses of kPageSize. The intent is to get rid of it completely to support platforms with multiple possible page sizes.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
ec3a5a21fd261f5227b5ad0d76bc148c6d227297 24-Oct-2012 Alexander Potapenko <glider@google.com> [ASan] Rename ReplaceCFAllocator to MaybeReplaceCFAllocator.
Replace the allocator only if the replace_cfallocator flag is set (in some cases it wasn't checked)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166550 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
35b661425ad452520544863f1b1afae961e6a92e 09-Oct-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Remove unneeded returns after UNIMPLEMENTED macro

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165493 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
ca2cdd989076d091d8c4d4c277f8b47d9b5903ad 12-Sep-2012 Alexander Potapenko <glider@google.com> Give more accurate malloc statistics to malloc_zone_statistics().

Fix a warning in macros instantiation.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
4ea14c2fa243684e1d7a017bd4f0d1e38801de0a 12-Sep-2012 Alexey Samsonov <samsonov@google.com> [ASan] more macro/casting magic to suppress warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
938c1ba136eb04ded2c982219edd689502094a54 12-Sep-2012 Alexander Potapenko <glider@google.com> Initial support for malloc_zone_statistics. All counters are set to zero now.
This is required to overcome a crash in mstats() (http://code.google.com/p/address-sanitizer/issues/detail?id=109)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163690 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
2122f705fcad0316b5ff9d5e1e9260fd18191e1f 29-Aug-2012 Alexander Potapenko <glider@google.com> For invalid pointers passed to free_common check whether they are actually skewed to hold an additional CFAllocatorRef.
If so, fix the pointer and pass it to asan_free.

See http://code.google.com/p/address-sanitizer/issues/detail?id=70 for more background.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162839 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
283c296b64bc55deec9698260b3427a9b050a925 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] get rid of AsanPrintf in favor of Printf from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
0ef531054fc25c11e372cbab1384f10954984219 17-Aug-2012 Alexander Potapenko <glider@google.com> Commit the source and CMake changes that will allow to build ASan runtime
as a shared library on Mac OS. This will provide an alternative to
mach_override.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162091 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
79fc3c042bbe8348fb6f3bff7a5575e4425e5a38 10-Aug-2012 Alexander Potapenko <glider@google.com> Remove the setjmp.h dependency, fix the comment.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161662 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
d262653fa207c6ee89700f192c5ff809a8ed6f52 10-Aug-2012 Alexander Potapenko <glider@google.com> Temporary fix for http://code.google.com/p/address-sanitizer/issues/detail?id=99:
when trying to free memory that actually belongs to the system purgeable zone, use malloc_zone_free(malloc_default_purgeable_zone(), ptr) instead of asan_free().


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161661 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
663c50134e01feefb6c5418c6ec7753be951c14f 09-Aug-2012 Alexey Samsonov <samsonov@google.com> [ASan] Move mac-specific error reports to asan_report.cc as well

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161576 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
75b19ebf25af204cf209d108997272822241d6da 23-Jul-2012 Alexander Potapenko <glider@google.com> Intercept CFAllocator for each thread in the program.
Test that child threads use the ASan allocator, that allocated memory can be passed to another thread and deallocated on it.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=81


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
cb8c4dce691097718d5af41b36899b72ef4b1d84 09-Jul-2012 Alexey Samsonov <samsonov@google.com> [ASan] Use common flags parsing machinery.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
0fedcd5abe8e9d51dc7177cf2fa239d9b83e270b 06-Jul-2012 Alexander Potapenko <glider@google.com> Small fix: do not replace the default CFAllocator if it has been replaced already.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159824 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
23a3b760646aab699d29896d4feaf2fc84ec3955 06-Jul-2012 Alexander Potapenko <glider@google.com> Because CFAllocatorCreate() should also be called after __CFInitialize() on Lion,
do so by factoring the CFAllocator logic into ReplaceCFAllocator(), which is called from
either the __CFInitialize wrapper or __asan_init(), depending on which of them is called later.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159822 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
bf9f6fbf015f687784e26f26570924be4ca3924f 06-Jul-2012 Alexander Potapenko <glider@google.com> A portable way to check whether __CFInitialize has been called: compare kCFAllocatorSystemDefault._base._cfisa to 0.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 on both Lion and Snow Leopard.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
d079db6dfbf3b0ec5fa1cc8d093e0dae6f970bf8 06-Jul-2012 Alexander Potapenko <glider@google.com> Do not check for __CFRuntimeClassTableSize on non-10.6 systems, where this symbol is private.
This change may cause http://code.google.com/p/address-sanitizer/issues/detail?id=87 to re-appear on Lion.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
decaec9ee3177b5e81e358ad8e93ab70b38a1cc0 05-Jul-2012 Alexander Potapenko <glider@google.com> Fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 by making sure we replace the default CFAllocator only after __CFInitialize has been called.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159749 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
e93be8414babdb4f4dbb31dc8b34a81809ca7c11 04-Jul-2012 Alexander Potapenko <glider@google.com> Do not call malloc_zone_from_ptr() for the pointers passed to mz_size() and mz_free().
These callbacks assume that the memory belongs to asan_zone, so it's incorrect to pass it to another one.
If a need for this appears (e.g. system libraries free the memory using wrong zone), it should be documented.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159713 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
0aa794d78fbb6359f81025217559f1b03ff07999 21-Jun-2012 Alexander Potapenko <glider@google.com> Factor the common code out of cf_free and mz_free.
Introduce the mac_ignore_invalid_free flag (0 by default) which makes both cf_free and mz_free ignore invalid free invocations and leak memory.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
e205a9daec9ec4afed956cf5455889725b9192fb 21-Jun-2012 Alexander Potapenko <glider@google.com> Actually intercept free() to ensure that the deallocations caused by other functions directly calling it are routed to our allocator.
For the allocations that do not belong to any malloc zone check whether they're padded with a pointer to ASan's CFAllocator. If so, free the original (unpadded) pointer.
This should fix AddressSanitizerMac.NSURLDeallocation and issue 70.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158863 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
e954101f6602ac181a2c3accfbbad0ae51b0bf7c 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer]: Introduce a common internal printf function. For now, also use tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
e5f5895bda30f374b0b51412fd4d837fa59aed66 04-Jun-2012 Alexey Samsonov <samsonov@google.com> Remove file-type tags for .cc files in ASan run-time library

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157927 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
3f4c3875c42078e22c7e5356c5746fd18756d958 31-May-2012 Kostya Serebryany <kcc@google.com> [asan] more renaming

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
ebb9702cff96192c6a6ea963037929ca7ed60eae 29-Mar-2012 Alexander Potapenko <glider@google.com> Add internal_memset and replace the uses of REAL(memset) with it where the performance allows.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153641 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
eeb719154538f38ffd54d8d3bfd8e113b97fe6a1 06-Mar-2012 Eli Friedman <eli.friedman@gmail.com> Make sure to properly ifdef out an unused function on OSX < 10.6. PR12136. Patch from Jeremy Huddleston.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152085 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
5b29018cf422e7711fb760b733c32127397a43fc 08-Feb-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: start factoring out interception machinery

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150083 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
09672caefb5694f1981a1712fdefa44840a95e67 08-Feb-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: replace all "real_X" calls with "REAL(X)"

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150073 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
4fd95f141f78906570c15a8a3b4cf0a7b50a201d 17-Jan-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: add support for malloc_usable_size() function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148287 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
c1ef2a0b8022f200f8bbb36641df866c4369876d 02-Dec-2011 Daniel Dunbar <daniel@zuster.org> asan: #if 0 out some unused functions (we build with -Werror).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
d6567c5166412f6acdde851e767c26f332d51d3d 01-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] flatten the asan-rt build slightly

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145631 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc
1e172b4bdec57329bf904f063a29f99cddf2d85f 30-Nov-2011 Kostya Serebryany <kcc@google.com> AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_malloc_mac.cc