- Sep 12, 2012
-
-
Alexander Potapenko authored
Fix a warning in macros instantiation. llvm-svn: 163716
-
Alexey Samsonov authored
llvm-svn: 163704
-
Alexey Samsonov authored
llvm-svn: 163686
-
- Sep 11, 2012
-
-
Evgeniy Stepanov authored
llvm-svn: 163613
-
- Sep 06, 2012
-
-
Evgeniy Stepanov authored
llvm-svn: 163313
-
- Sep 05, 2012
-
-
Alexey Samsonov authored
[ASan] hoist more compile flags to SANITIZER_COMMON_CFLAGS var and add the rest of flags/defs from old Makefile to CMake llvm-svn: 163204
-
Alexey Samsonov authored
llvm-svn: 163201
-
- Aug 30, 2012
-
-
Alexey Samsonov authored
llvm-svn: 162909
-
- Aug 29, 2012
-
-
Chandler Carruth authored
library. These headers are intended to be available to user code when built with AddressSanitizer (or one of the other sanitizer's in the future) to interface with the runtime library. As such, they form stable external C interfaces, and the headers shouldn't be located within the implementation. I've pulled them out into what seem like fairly obvious locations and names, but I'm wide open to further bikeshedding of these names and locations. I've updated the code and the build system to cope with the new locations, both CMake and Makefile. Please let me know if this breaks anyone's build. The eventual goal is to install these headers along side the Clang builtin headers when we build the ASan runtime and install it. My current thinking is to locate them at: <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h <prefix>/lib/clang/X.Y/include/sanitizer/... But maybe others have different suggestions? Fixing the style of the #include between these headers at least unblocks experimentation with installing them as they now should work when installed in these locations. llvm-svn: 162822
-
Chandler Carruth authored
This hoists most of the CFLAGS into a common variable. It also adds detection for -Wno-c99-extensions and uses it to silence a pile of warnings. Finally, it switches to the proper flag -rdynamic. With this, the cmake build is warning free on my bootstrap Linux build. llvm-svn: 162809
-
- Aug 28, 2012
-
-
Alexey Samsonov authored
llvm-svn: 162750
-
Kostya Serebryany authored
llvm-svn: 162747
-
Kostya Serebryany authored
[asan] improve SetErrorReportCallbackTest to actually catch missing functionality in __asan_set_error_report_callback llvm-svn: 162745
-
- Aug 14, 2012
-
-
Kostya Serebryany authored
llvm-svn: 161874
-
- Aug 13, 2012
-
-
Alexey Samsonov authored
[ASan] Add __asan_set_on_error_callback() interface function that allows user to set a callback to be called right when ASan detects an error llvm-svn: 161754
-
- Aug 10, 2012
-
-
Alexey Samsonov authored
llvm-svn: 161665
-
- Aug 07, 2012
-
-
Alexey Samsonov authored
llvm-svn: 161406
-
- Aug 02, 2012
-
-
Alexander Potapenko authored
Make strcat() and strncat() more standard-compliant (check for invalid parameters even if zero bytes is copied, more accurate overlap check) Fix the tests that were relying on the incorrect behavior. llvm-svn: 161167
-
- Jul 25, 2012
-
-
Alexey Samsonov authored
cmake for compiler-rt: add a function to set output dirs for compiler runtimes equal to directory used by Clang driver. Use it for ASan runtime. Also, make sure that ASan unit tests depend on the ASan runtime. llvm-svn: 160721
-
Kostya Serebryany authored
[asan] don't return from a never-return function. fix a test that had a chain of bugs instead of just one llvm-svn: 160719
-
- Jul 24, 2012
-
-
Alexey Samsonov authored
[ASan] Support for cmake build of ASan unittests in 32-bit LLVM build. Currently, to run ASan unit tests both for 32- and 64 bits one has to maintain two distinct LLVM builds. In a bright future, we'd like to use a single build for this llvm-svn: 160666
-
- 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
-
- Jun 29, 2012
-
-
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
-
- 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
-
- Jun 21, 2012
-
-
Alexander Potapenko authored
llvm-svn: 158922
-
Alexander Potapenko authored
llvm-svn: 158921
-
Alexander Potapenko authored
Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine. llvm-svn: 158886
-
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 20, 2012
-
-
Alexander Potapenko authored
llvm-svn: 158843
-
- Jun 08, 2012
-
-
Alexey Samsonov authored
llvm-svn: 158198
-