| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
Summary: This flag could be used to disable check in runtime.
Subscribers: kubabrecka
Differential Revision: https://reviews.llvm.org/D22495
llvm-svn: 276004
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This is adding the appropriate suport for exception handling for
64-bits ASAN on windows.
Reviewers: rnk
Subscribers: kubabrecka, llvm-commits, wang0109, chrisha
Differential Revision: https://reviews.llvm.org/D22395
llvm-svn: 275585
|
|
|
|
|
|
|
|
|
|
| |
Memory will be committed on demand when exception happens while accessing
shadow memeory region.
Patch by: Wei Wang
Differential Revision: http://reviews.llvm.org/D21942
llvm-svn: 275107
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's fixing compilation errors. The runtime is not yet working.
Missing features:
OverrideFunction for x64
an equiv function for inline asm (atomic_compare_exchange_strong)
shadow memory offset needs to be adjusted
RoundUpToInstrBoundary for x64
They will be implemented by subsequent patches.
Patch by Wei Wang.
Differential revision: http://reviews.llvm.org/D20455
llvm-svn: 271049
|
|
|
|
|
|
|
|
|
|
|
| |
This change introduces routines that register and unregister all
instrumented globals in a loaded executable image.
These routines are only implemented on Darwin, where globals metadata
is expected to be placed in the __DATA,__asan_globals section.
Review: http://reviews.llvm.org/D16841
llvm-svn: 264644
|
|
|
|
|
|
|
|
|
|
|
| |
VS 2015 moved the priority of their exception filter initializer from
XIY to XCAA. We now set ours to XCAB, which makes it run after both CRT
versions but before user constructors, as it should.
Fixes null_deref.cc and a variety of related tests with VS 2015. Only 4
failures remain.
llvm-svn: 264006
|
|
|
|
|
|
|
|
| |
In AddressSanitizer, we have the MaybeReexec method to detect when we're running without DYLD_INSERT_LIBRARIES (in which case interceptors don't work) and re-execute with the environment variable set. On OS X 10.11+, this is no longer necessary, but to have ThreadSanitizer supported on older versions of OS X, let's use the same method as well. This patch moves the implementation from `asan/` into `sanitizer_common/`.
Differential Revision: http://reviews.llvm.org/D15123
llvm-svn: 254600
|
|
|
|
|
|
|
|
| |
Define WIN32_LEAN_AND_MEAN before including Windows.h. This is already being
done in some places. This does it more broadly. This permits building ASAN on
Linux for Winndows, as well as reduces the amount of included declarations.
llvm-svn: 251649
|
|
|
|
|
|
|
| |
Apparently /Zc:inline causes static globals in custom sections to be
discarded if they are unreferenced.
llvm-svn: 244908
|
|
|
|
|
|
| |
handle SIGFPE crashes same as SIGSEV crashes, patch by Karl Skomski. This time the test is enabled only on x86-64 (it broke on ARM)
llvm-svn: 244234
|
|
|
|
|
|
|
|
| |
handle SIGFPE crashes same as SIGSEV crashes, patch by Karl Skomski"
This reverts commit r244136, it was breaking the ARM bots for too long. We should investigate it offline.
llvm-svn: 244210
|
|
|
|
|
|
| |
crashes same as SIGSEV crashes, patch by Karl Skomski
llvm-svn: 244136
|
|
|
|
| |
llvm-svn: 243529
|
|
|
|
|
|
|
|
|
|
|
| |
Since the CoreFoundation allocator replacement was moved in r173134, all
implementations of this function have been empty.
Reviewers: samsonov
Differential Revision: http://reviews.llvm.org/D11375
llvm-svn: 242811
|
|
|
|
|
|
|
|
| |
passed to BindIoCompletionCallback
This also simplifies how we handle QueueUserWorkItem
llvm-svn: 232499
|
|
|
|
|
|
| |
Reviewed at http://reviews.llvm.org/D8321
llvm-svn: 232377
|
|
|
|
| |
llvm-svn: 230980
|
|
|
|
| |
llvm-svn: 230501
|
|
|
|
|
|
|
| |
They don't build on Windows.
http://lab.llvm.org:8011/builders/sanitizer-windows/ went red for example.
llvm-svn: 230461
|
|
|
|
| |
llvm-svn: 230432
|
|
|
|
|
|
| |
and __asan_on_error
llvm-svn: 230344
|
|
|
|
|
|
|
|
| |
We currently skip all "Noinst" unit tests on OS X, which was probably caused when we removed the "allow_reexec" flag. The MaybeReexec function fails to re-execute when the runtime is linked statically, because there is no dylib to use. This patch adds an explicit DisableReexec function that is used from asan_noinst_test.cc and the runtime then doesn't try to re-execute.
Reviewed at http://reviews.llvm.org/D7493
llvm-svn: 228740
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D6148
llvm-svn: 222756
|
|
|
|
| |
llvm-svn: 217679
|
|
|
|
| |
llvm-svn: 216265
|
|
|
|
|
|
| |
Reviewed at http://reviews.llvm.org/D4471
llvm-svn: 212807
|
|
|
|
|
|
| |
Based on http://llvm-reviews.chandlerc.com/D3042 by Yuri Gribov!
llvm-svn: 205308
|
|
|
|
|
|
| |
__asan::AsanOnSIGSEGV() on Windows.
llvm-svn: 200554
|
|
|
|
|
|
|
| |
This change is a part of refactoring intended to have common signal handling behavior in all tools.
This particular CL moves InstallSignalHandlers() into sanitizer_common (making it InstallDeadlySignalHandlers()), but doesn't enable default signal handlers for any tool other than ASan.
llvm-svn: 200542
|
|
|
|
|
|
|
| |
This change is a part of refactoring intended to have common signal handling behavior in all tools.
Note that this particular change doesn't enable use_sigaltstack support in every tool.
llvm-svn: 200310
|
|
|
|
| |
llvm-svn: 197571
|
|
|
|
|
|
|
|
| |
Call AsanThread::Destroy() from a late-running TSD destructor.
Previously we called it before any user-registered TSD destructors, which caused
false positives in LeakSanitizer.
llvm-svn: 192585
|
|
|
|
| |
llvm-svn: 191189
|
|
|
|
| |
llvm-svn: 191188
|
|
|
|
| |
llvm-svn: 181424
|
|
|
|
| |
llvm-svn: 177401
|
|
|
|
| |
llvm-svn: 177400
|
|
|
|
|
|
| |
context stack is too large
llvm-svn: 172727
|
|
|
|
| |
llvm-svn: 172380
|
|
|
|
| |
llvm-svn: 172226
|
|
|
|
| |
llvm-svn: 170119
|
|
|
|
|
|
| |
of its use cases.
llvm-svn: 168508
|
|
|
|
| |
llvm-svn: 165003
|
|
|
|
|
|
| |
Fall back to module+offset if user-provided symbolizer failed. Use weak function __asan_symbolize instead of __asan_set_symbolize_callback in ASan interface, so that we're able to symbolize reports for errors that happen before the main() is called, for example, during module initialization.
llvm-svn: 165000
|
|
|
|
| |
llvm-svn: 162758
|
|
|
|
| |
llvm-svn: 162747
|
|
|
|
|
|
|
|
|
| |
DYLD_INSERT_LIBRARIES
(which, in turn, is required for our interceptors to take effect), re-exec the program with
DYLD_INSERT_LIBRARIES set.
llvm-svn: 162547
|
|
|
|
|
|
| |
__asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer
llvm-svn: 162358
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
sanitizer libc)
llvm-svn: 158710
|