- Feb 14, 2014
-
-
Evgeniy Stepanov authored
llvm-svn: 201404
-
Evgeniy Stepanov authored
These are runtime support functions for inline assembly instrumentation. Patch by Yuri Gorshenin. llvm-svn: 201402
-
- Feb 10, 2014
-
-
Evgeniy Stepanov authored
This change adds a copy of <ucontext.h> for Android found in google-breakpad that is missing from the official NDK. ASan SEGV handler is still disabled by default and can be enabled with ASAN_OPTIONS=handle_segv. llvm-svn: 201084
-
- Jan 30, 2014
-
-
Timur Iskhodzhanov authored
llvm-svn: 200485
-
Timur Iskhodzhanov authored
llvm-svn: 200474
-
- Jan 28, 2014
-
-
Alexander Potapenko authored
[ASan] Reinstate ASAN_LOW_MEMORY, which has nothing to do with signal handling and thus should not be moved to common. llvm-svn: 200319
-
Alexander Potapenko authored
This change is a part of refactoring intended to have common signal handling behavior in all tools. llvm-svn: 200295
-
- Jan 23, 2014
-
-
Evgeniy Stepanov authored
This change duplicates all ASan output to system log on Android. llvm-svn: 199887
-
- Jan 16, 2014
-
-
Evgeniy Stepanov authored
This change adds ASAN_OPTIONS=start_deactivated=1 flag. When present, ASan will start in "deactivated" mode, with no heap poisoning, no quarantine, no stack trace gathering, and minimal redzones. All this features come back when __asan_init is called for the constructor of an instrumented library. The primary use case for this feature is Android. Code itself is not Android-specific, and this patch includes a Linux test for it. llvm-svn: 199377
-
Evgeniy Stepanov authored
llvm-svn: 199370
-
- Nov 17, 2013
-
-
Alexey Samsonov authored
llvm-svn: 194958
-
- Nov 14, 2013
-
-
Alexey Samsonov authored
llvm-svn: 194696
-
- Nov 13, 2013
-
-
Alexander Potapenko authored
llvm-svn: 194583
-
- Nov 07, 2013
-
-
Alexander Potapenko authored
CMake changes to build the ASan runtime for the iOS simulator. This is a universal library targeting the same architectures as the OSX ASan runtime does, thus the iossim version can't live in the same universal libclang_rt.asan_osx_dynamic.dylib The difference between the OSX and iossim builds is in the -mios-simulator-version-min and -ios_simulator_version_min flags that tell Clang to compile and link iossim code. The iossim runtime can only be built on a machine with both Xcode and the iOS Simulator SDK installed. If xcodebuild -version -sdk iphonesimulator Path returns a nonempty path, it is used when compiling and linking the iossim runtime. llvm-svn: 194199
-
- Oct 26, 2013
-
-
Peter Collingbourne authored
This moves away from creating the symbolizer object and initializing the external symbolizer as separate steps. Those steps now always take place together. Sanitizers with a legacy requirement to specify their own symbolizer path should use InitSymbolizer to initialize the symbolizer with the desired path, and GetSymbolizer to access the symbolizer. Sanitizers with no such requirement (e.g. UBSan) can use GetOrInitSymbolizer with no need for initialization. The symbolizer interface has been made thread-safe (as far as I can tell) by protecting its member functions with mutexes. Finally, the symbolizer interface no longer relies on weak externals, the introduction of which was probably a mistake on my part. Differential Revision: http://llvm-reviews.chandlerc.com/D1985 llvm-svn: 193448
-
- Oct 20, 2013
-
-
Peter Collingbourne authored
Differential Revision: http://llvm-reviews.chandlerc.com/D1339 llvm-svn: 193060
-
- Sep 16, 2013
-
-
Alexey Samsonov authored
(1) instrumented, i.e. compiled and linked with -fsanitize=address (2) not instrumented, compiled w/o -fsanitize=address and linked with ASan runtime statically. llvm-svn: 190788
-
- Aug 28, 2013
-
-
Alexey Samsonov authored
llvm-svn: 189454
-
- Aug 27, 2013
-
-
Alexey Samsonov authored
This change adds a Python script that is invoked for the just-built sanitizer runtime to generate the list of exported symbols passed to the linker. By default, it contains interceptors and sanitizer interface functions, but can be extended with tool-specific lists. llvm-svn: 189356
-
Hans Wennborg authored
This sets flags and excludes things that aren't working with MSVC yet, allowing us to build the ASan runtime as part of the cmake build. Differential Revision: http://llvm-reviews.chandlerc.com/D1525 llvm-svn: 189304
-
- Jun 22, 2013
-
-
Alexey Samsonov authored
llvm-svn: 184639
-
- Jun 07, 2013
-
-
Alexey Samsonov authored
llvm-svn: 183499
-
- May 22, 2013
-
-
Alexey Samsonov authored
llvm-svn: 182470
-
Alexey Samsonov authored
llvm-svn: 182465
-
- May 21, 2013
-
-
Sergey Matveev authored
Also, define CAN_SANITIZE_LEAKS. llvm-svn: 182383
-
Alexey Samsonov authored
llvm-svn: 182380
-
- May 17, 2013
-
-
Peter Collingbourne authored
Introduce a new object library, RTSanitizerCommonLibc, which will contain the subset of sanitizer_common with libc dependencies. RTSanitizerCommon contains the remainder of sanitizer_common, and is intended to have no libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting with sanitizer_common.cc, whose libc-dependent portion is moved to sanitizer_common_libcdep.cc, the first member of the new library. This split affects the CMake build only. The makefile build continues to produce the full sanitizer_common library. llvm-svn: 182118
-
- Apr 04, 2013
-
-
Kostya Serebryany authored
llvm-svn: 178758
-
- Mar 23, 2013
-
-
Richard Smith authored
specify which symbols are exported to DSOs when the sanitizer is statically linked into a binary. llvm-svn: 177784
-
- Mar 21, 2013
-
-
Alexey Samsonov authored
[ASan] Switch ASan to generic ThreadRegistry from sanitizer_common. Delete ASan-specific AsanThreadRegistry. llvm-svn: 177634
-
- Mar 13, 2013
-
-
Alexey Samsonov authored
llvm-svn: 176940
-
- Feb 22, 2013
-
-
Kostya Serebryany authored
llvm-svn: 175871
-
- Feb 20, 2013
-
-
Alexander Potapenko authored
[ASan] Delete asan/dynamic dir and temporarily move the interposers declarations to asan_intercepted_functions.h Now that we have only one dependency on asan_intercepted_functions.h, we can unite that code with the interceptors declarations in asan_interceptors.cc and get rid of asan_intercepted_functions.h llvm-svn: 175631
-
- Feb 05, 2013
-
-
Alexander Potapenko authored
Nuke lib/interception/mach_override. llvm-svn: 174383
-
- Jan 22, 2013
-
-
Alexander Potapenko authored
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. llvm-svn: 173134
-
Alexey Samsonov authored
ASan: disable flexible mapping and offset on Android. It doesn't work for dynamic ASan runtime there llvm-svn: 173132
-
- Jan 21, 2013
-
-
Alexey Samsonov authored
CMake: generalize checking for target availability and add initial support for PowerPC native arch. With this patch, building LLVM on PowerPC native arch produces a working ASan runtime. llvm-svn: 173044
-
Alexey Samsonov authored
ASan: use dynamic lookup when building dynamic ASan runtime on Mac, because shadow mapping and offset are defined in the instrumented modules instead of runtime llvm-svn: 173015
-
Alexey Samsonov authored
ASan: build runtime library with ASAN_FLEXIBLE_MAPPING_AND_OFFSET=1 as shadow mapping/offset are always emitted by the LLVM backend now llvm-svn: 173013
-
Alexey Samsonov authored
CMake: add functions creating universal runtime libraries for several architectures on OS X and use them in ASan and UBSan build rules llvm-svn: 173011
-