- Aug 09, 2012
-
-
Alexey Samsonov authored
llvm-svn: 161569
-
Alexey Samsonov authored
[ASan] Create new files asan_report.{h,cc} as a preparation for refactoring of ASan error reporting code. Currently ASan reports many kinds of errors, and the code that actually prints error messages can be found inside allocator, OS-specific files, interceptors code etc. An example of maintenance troubles this situation causes: There is currently an ASan interface function that registers callback which should take the char buffer with error report printed by ASan. This function is now broken, as one has to insert callback calls to all the places in ASan code where the error reports are printed, surprisingly it is not only "__asan_report_error" function... llvm-svn: 161568
-
- Aug 08, 2012
-
-
Alexey Samsonov authored
llvm-svn: 161485
-
- Aug 07, 2012
-
-
Alexey Samsonov authored
[compiler-rt] CMake build: if LLVM_BUILD_32_BITS is on, then -m32 is added to llvm definitions. Let us override this by explicitly adding -m64 compiler flag when building compiler-rt libraries for x86_64 target llvm-svn: 161415
-
Alexey Samsonov authored
llvm-svn: 161412
-
Alexey Samsonov authored
llvm-svn: 161411
-
Alexey Samsonov authored
llvm-svn: 161406
-
- Aug 06, 2012
-
-
Alexey Samsonov authored
llvm-svn: 161322
-
Alexey Samsonov authored
[ASan] add new ASan option 'strip_path_prefix' to remove useless prefices from filenames in stack traces llvm-svn: 161321
-
Alexander Potapenko authored
AllocationSize(ptr) should check that |ptr| actually points to the beginning of the chunk it belongs to. Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=86 llvm-svn: 161320
-
- Aug 02, 2012
-
-
Alexander Potapenko authored
llvm-svn: 161181
-
Alexander Potapenko authored
Some refactoring for asan_symbolize.py: introduced the Symbolizer class and implemented DarwinSymbolizer for atos-based symbolization, BreakpadSymbolizer for breakpad-based symbolization (files produced by the dump_syms tool, http://code.google.com/p/google-breakpad/source/browse/#svn%2Ftrunk%2Fsrc%2Ftools%2Fmac%2Fdump_syms) and ChainSymbolizer to allow falling back if a symbolizer hadn't succeeded. Fixed pylint warnings. llvm-svn: 161176
-
Alexey Samsonov authored
llvm-svn: 161170
-
Alexey Samsonov authored
llvm-svn: 161169
-
Alexey Samsonov authored
[Sanitizer] Workaround for a compiler warning - ISO C++ forbids casting pointer-to-function to pointer-to-object, so we use cast via integral type llvm-svn: 161168
-
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
-
Alexey Samsonov authored
llvm-svn: 161166
-
- Aug 01, 2012
-
-
Alexander Potapenko authored
Add support for "movsbl %sil,%ecx" (x86_64) and "movsbl $imm(%ebp), %edx" (i386) to our fork of mach_override. This is an extended version of a patch by Rafael Avila de Espindola (rafael.espindola@gmail.com) llvm-svn: 161116
-
Alexey Samsonov authored
llvm-svn: 161113
-
Alexey Samsonov authored
[ASan] cleanup interceptors code - prefer ASAN_INTERCEPT_FUNCTION_NAME macro to _WIN32, __APPLE__ etc. llvm-svn: 161109
-
- Jul 31, 2012
-
-
Alexey Samsonov authored
First tiny move towards integrating AddressSanitizer regressions test into LLVM lit-based testing infrastructure. The goal is to be able to run ASan tests by simply running "make check-asan" command from CMake build tree: * tests should use fresh clang binary from current build tree. * tests should use the same RUN-lines syntax as llvm/clang reg tests. Next steps: - restricting tests to machines where target is equal to host, i.e. where we can produce working binaries. - moving AddressSanitizer unit tests to lit as well. llvm-svn: 161050
-
Alexander Potapenko authored
llvm-svn: 161046
-
Alexey Samsonov authored
[Sanitizer] Wrapper around llvm::DIContext from LLVM DebugInfo library. If a macro SANITIZER_USES_LLVM_LIBS is defined (by default it is not), then sanitizer runtime includes llvm headers and tries to use LLVM libs for in-process symbolization. To make it functional, we have to link with these LLVM libs - either pass them to linker from Clang driver, or link them into static ASan runtime when we build it. llvm-svn: 161045
-
- Jul 30, 2012
-
-
Alexey Samsonov authored
llvm-svn: 160957
-
Alexey Samsonov authored
llvm-svn: 160955
-
- Jul 28, 2012
-
-
Dmitry Vyukov authored
fix clock setup for finalizer goroutine (Go runtime) llvm-svn: 160918
-
- Jul 27, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 160875
-
Dmitry Vyukov authored
llvm-svn: 160863
-
Dmitry Vyukov authored
llvm-svn: 160861
-
Dmitry Vyukov authored
llvm-svn: 160860
-
Kostya Serebryany authored
llvm-svn: 160853
-
- Jul 26, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 160797
-
- Jul 25, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 160728
-
Dmitry Vyukov authored
llvm-svn: 160723
-
Dmitry Vyukov authored
llvm-svn: 160722
-
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
-
Alexey Samsonov authored
llvm-svn: 160718
-
Alexander Potapenko authored
Users may define it to override the default ASan options. This function has to be marked with __attribute__((no_address_safety_analysis)), because it is called before ASan is fully initialized. Add an output test checking the __asan_default_options functionality. llvm-svn: 160712
-
- Jul 24, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 160672
-