- 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
-
Alexey Samsonov authored
llvm-svn: 160624
-
Alexander Potapenko authored
For wild addresses in the shadow or shadow gap areas print an error message instead of crashing on a check. Add AddressSanitizer.MemsetWildAddressTest that makes sure a proper error message is printed. llvm-svn: 160620
-
- Jul 19, 2012
-
-
Alexey Samsonov authored
[ASan] subtract one from PCs in ASan error reports (as they originally contain return addresses). Make output tests stricter. llvm-svn: 160508
-
Alexander Potapenko authored
llvm-svn: 160502
-
- Jul 17, 2012
-
-
Kostya Serebryany authored
llvm-svn: 160347
-
- Jul 10, 2012
-
-
Alexey Samsonov authored
llvm-svn: 159988
-
Alexey Samsonov authored
llvm-svn: 159985
-
- Jul 09, 2012
-
-
Alexey Samsonov authored
llvm-svn: 159934
-
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
-
Alexey Samsonov authored
llvm-svn: 159709
-
- Jul 03, 2012
-
-
Alexey Samsonov authored
[Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib. llvm-svn: 159652
-
- Jul 02, 2012
-
-
Alexey Samsonov authored
[ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings llvm-svn: 159514
-
- Jun 29, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 159438
-
Dmitry Vyukov authored
llvm-svn: 159437
-
Alexey Samsonov authored
[ASan] cmake unit tests: explicitly add necessary linker flags when linking unit tests with asan runtime llvm-svn: 159420
-
Alexey Samsonov authored
llvm-svn: 159419
-
- Jun 28, 2012
-
-
Alexey Samsonov authored
llvm-svn: 159348
-
Alexey Samsonov authored
llvm-svn: 159347
-
Alexey Samsonov authored
llvm-svn: 159345
-
Alexey Samsonov authored
[ASan] update cmake rules so that ASan unit tests can include googletest (and, hence, llvm) headers when they are built by fresh Clang llvm-svn: 159343
-
Alexey Samsonov authored
llvm-svn: 159338
-
- Jun 27, 2012
-
-
Chandler Carruth authored
just-built Clang binary, and linking them against the just-built ASan runtime. This is *very* brittle. I expect it will require tweaking, and I've pro-actively disabled it on non-Unix builds and on cross-builds. It is also currently missing dependency edges on GoogleTest header files and a few other corner cases, but those can be fixed. This is the major milestone of a mini-bootstrap-like build of the unittest. llvm-svn: 159255
-
- Jun 25, 2012
-
-
Kostya Serebryany authored
llvm-svn: 159143
-
Kostya Serebryany authored
[asan] move tests from asan_interface_test.cc to asan_noinst_test.cc. Now all these tests do not require instrumentation and work directly with asan rt llvm-svn: 159135
-
Chandler Carruth authored
Add the initial support for building ASan tests. The first change here is to try to get the CFLAGS to more closely match those used by the old Makefile. There are probably still goofs here, ASan folks, your review would be appreciated. The second big change is to add support for building both instrumentation based an non-instrumentation based unittests for ASan. They are built a bit differently from how the old makefiles managed things. Specifically, there are two binaries, one for the non-instrumented case, and one for the instrumented case. Also, the instrumented unit tests rely on the host compiler supporting AddressSanitizer's intrumentation pass. This is kind-of gross, but I don't know of a better way yet. I've mailed llvmdev to discuss this issue. One big caveat is that the detection logic currently doesn't work. I've commented it out temporarily as I'd like to get feedback from the ASan developers, etc. llvm-svn: 159134
-
Kostya Serebryany authored
llvm-svn: 159132
-
Chandler Carruth authored
ASan, and friends. This explicitly switches the CompilerRT CMake build to require CMake version 2.8.8 or newer which provides first-class support for "object" libraries which consist of a pile of '.o' files -- exactly what is desired for composing runtime libraries. I've gone ahead and switched to using this. I've also added the interception library which I missed initially. And I've added proper dependencies between the various libraries. With this, I'm able to build archives for asan that appear to contain all of the necessary .o files. The final tweak here is to start setting up the compile flags and macro defines expected by ASan and its helper libraries. These may not be entirely correct currently, they're based loosely on my reading of the old Makefiles. However, they can be tweaked more easily now that they're wired up properly. llvm-svn: 159129
-
Chandler Carruth authored
llvm-svn: 159128
-
- Jun 23, 2012
-
-
Kostya Serebryany authored
llvm-svn: 159083
-
- Jun 21, 2012
-
-
Alexander Potapenko authored
llvm-svn: 158922
-
Alexander Potapenko authored
llvm-svn: 158921
-
Alexey Samsonov authored
llvm-svn: 158905
-
Alexander Potapenko authored
Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine. llvm-svn: 158886
-