- Sep 12, 2012
-
-
Alexander Potapenko authored
Fix a warning in macros instantiation. llvm-svn: 163716
-
Alexey Samsonov authored
llvm-svn: 163706
-
Alexander Potapenko authored
This is required to overcome a crash in mstats() (http://code.google.com/p/address-sanitizer/issues/detail?id=109) llvm-svn: 163690
-
- Aug 29, 2012
-
-
Alexander Potapenko authored
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. llvm-svn: 162839
-
- Aug 28, 2012
-
-
Kostya Serebryany authored
llvm-svn: 162746
-
- Aug 17, 2012
-
-
Alexander Potapenko authored
as a shared library on Mac OS. This will provide an alternative to mach_override. llvm-svn: 162091
-
- Aug 10, 2012
-
-
Alexander Potapenko authored
llvm-svn: 161662
-
http://code.google.com/p/address-sanitizer/issues/detail?id=99Alexander Potapenko authored
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(). llvm-svn: 161661
-
- Aug 09, 2012
-
-
Alexey Samsonov authored
llvm-svn: 161576
-
- Jul 23, 2012
-
-
Alexander Potapenko authored
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 llvm-svn: 160630
-
- Jul 09, 2012
-
-
Alexey Samsonov authored
llvm-svn: 159933
-
- Jul 06, 2012
-
-
Alexander Potapenko authored
llvm-svn: 159824
-
Alexander Potapenko authored
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. llvm-svn: 159822
-
Alexander Potapenko authored
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. llvm-svn: 159821
-
Alexander Potapenko authored
This change may cause http://code.google.com/p/address-sanitizer/issues/detail?id=87 to re-appear on Lion. llvm-svn: 159819
-
- Jul 05, 2012
-
-
http://code.google.com/p/address-sanitizer/issues/detail?id=87Alexander Potapenko authored
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. llvm-svn: 159749
-
- Jul 04, 2012
-
-
Alexander Potapenko authored
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. llvm-svn: 159713
-
- Jun 21, 2012
-
-
Alexander Potapenko authored
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. llvm-svn: 158885
-
Alexander Potapenko authored
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. llvm-svn: 158863
-
- Jun 06, 2012
-
-
Alexey Samsonov authored
[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). llvm-svn: 158065
-
- Jun 04, 2012
-
-
Alexey Samsonov authored
llvm-svn: 157927
-
- May 31, 2012
-
-
Kostya Serebryany authored
llvm-svn: 157746
-
- Mar 29, 2012
-
-
Alexander Potapenko authored
llvm-svn: 153641
-
- Mar 06, 2012
-
-
Eli Friedman authored
Make sure to properly ifdef out an unused function on OSX < 10.6. PR12136. Patch from Jeremy Huddleston. llvm-svn: 152085
-
- Feb 08, 2012
-
-
Alexey Samsonov authored
llvm-svn: 150083
-
Alexey Samsonov authored
llvm-svn: 150073
-
- Jan 17, 2012
-
-
Alexey Samsonov authored
llvm-svn: 148287
-
- Dec 02, 2011
-
-
Daniel Dunbar authored
llvm-svn: 145645
-
- Dec 01, 2011
-
-
Kostya Serebryany authored
llvm-svn: 145631
-
- Nov 30, 2011
-
-
Kostya Serebryany authored
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 llvm-svn: 145463
-