- Mar 12, 2013
-
-
Evgeniy Stepanov authored
llvm-svn: 176854
-
Kostya Serebryany authored
[sanitizer] simplify the allocator's SizeClassMap: do not require an extra template parameter, instead compute it in flight. No functionality change llvm-svn: 176853
-
- Mar 11, 2013
-
-
Reid Kleckner authored
Summary: The loader does not call mmap() through the PLT because it has to bootstrap the process before libc is present. Hooking dlopen() isn't enough either because the loader runs module initializers before returning, and they could run arbitrary msan instrumented code. If msandr is present, then we can intercept the mmaps from dlopen at the syscall layer and clear the shadow there. If msandr is missing, we clear the shadow after dlopen() and hope any initializers are trivial. Reviewers: eugenis CC: kcc, llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D509 llvm-svn: 176818
-
Alexey Samsonov authored
llvm-svn: 176805
-
Alexander Potapenko authored
[ASan] Reduce the local buffer size in Report() not to fail the check enforced when building TSan runtime. llvm-svn: 176804
-
Alexander Potapenko authored
[ASan] Try to use a small (512 bytes) stack-local buffer in Report() for short messages, fall back to MmapOrDie() in the case of a failure. This shall eliminate most of the cryptic "ERROR: failed to mmap" messages caused by recursively calling MmapOrDie() from MmapOrDie(). llvm-svn: 176802
-
Alexander Potapenko authored
llvm-svn: 176800
-
Kostya Serebryany authored
llvm-svn: 176799
-
- Mar 09, 2013
-
-
Nick Lewycky authored
it. Fortunately, versions of gcov that predate the extra checksum also ignore any extra data, so this isn't a problem. This matches the API change made in r176745. llvm-svn: 176746
-
- Mar 07, 2013
-
-
Nick Lewycky authored
llvm-svn: 176618
-
- Mar 06, 2013
-
-
Reid Kleckner authored
Summary: I'm hitting a big recursive report from: uninit on strlen -> __msan::PrintWarningWithOrigin() -> __msan::GetStackTrace() -> __sanitizer::StackTrace::SlowUnwindStack() -> _Unwind_Backtrace() -> ... libgcc calls -> uninit on strlen() -> ... repeats Reviewers: eugenis Differential Revision: http://llvm-reviews.chandlerc.com/D497 llvm-svn: 176555
-
Reid Kleckner authored
pthread_join() returns an error code, not the result of the pthread_create() function like I thought. llvm-svn: 176554
-
Reid Kleckner authored
Summary: Adds a test for this case, which was reduced from a chromium build of WebKit's DumpRenderTree. Reviewers: eugenis CC: glider Differential Revision: http://llvm-reviews.chandlerc.com/D495 llvm-svn: 176552
-
- Mar 05, 2013
-
-
Alexey Samsonov authored
llvm-svn: 176479
-
Alexey Samsonov authored
llvm-svn: 176478
-
Nick Kledzik authored
llvm-svn: 176466
-
- Mar 01, 2013
-
-
Evgeniy Stepanov authored
New allocator has 1.5x memory overhead of the old one. llvm-svn: 176340
-
Evgeniy Stepanov authored
llvm-svn: 176338
-
- Feb 28, 2013
-
-
Evgeniy Stepanov authored
llvm-svn: 176264
-
Alexander Potapenko authored
[ASan] Add the memcmp_strict flag (1 by default) that controls the behavior of accessibility checks in memcmp. 1: memcmp(p1, p2, n) always checks n bytes 0: memcmp checks up to n bytes depending on whether the memory contents differ. llvm-svn: 176256
-
Evgeniy Stepanov authored
llvm-svn: 176255
-
Kostya Serebryany authored
[asan] bump kMidMemEnd to 0x4fffffffffULL since in rare cases prelink uses addresses higher than 0x3fffffffff llvm-svn: 176250
-
Alexey Samsonov authored
[Sanitizer] Relax ThreadLister tests to allow possible pre-existing threads. Do proper mutex destruction. Patch by Sergey Matveev llvm-svn: 176249
-
Evgeniy Stepanov authored
llvm-svn: 176248
-
Nick Lewycky authored
didn't delete the original, and now they've diverged. I have no idea what's going on. Apply my patch in r176173 to this one too, this one looks newer? llvm-svn: 176236
-
- Feb 27, 2013
-
-
Kostya Serebryany authored
[asan] if calloc returns a freshly-mmaped memory, don't clear it with memset. Speeds up calloc-intensive code llvm-svn: 176185
-
Alexey Samsonov authored
llvm-svn: 176183
-
Alexey Samsonov authored
[UBSan] Use common report decorator to print colorful diagnostics in UBSan, and be more consistent w/ Printf/RawWrite llvm-svn: 176182
-
Kostya Serebryany authored
ThreadLister is a Linux-specific class for obtaining the thread IDs of a process from procfs (/proc/<pid>/task/). It will be used by leak checking code. Also add several syscall wrappers which will be required by the same code that uses ThreadLister, but are not used in ThreadLister itself. Patch by Sergey Matveev llvm-svn: 176179
-
Kostya Serebryany authored
llvm-svn: 176175
-
- Feb 26, 2013
-
-
Alexey Samsonov authored
llvm-svn: 176091
-
Kostya Serebryany authored
[sanitizer] A low-level vector implementation to be used in leak checking code. Patch by Sergey Matveev llvm-svn: 176089
-
Kostya Serebryany authored
llvm-svn: 176085
-
Kostya Serebryany authored
llvm-svn: 176079
-
Kostya Serebryany authored
[asan] fix the output for range accesses (memset, etc); improve the tests; more strict checking in memcmp llvm-svn: 176078
-
Kostya Serebryany authored
llvm-svn: 176077
-
- Feb 25, 2013
-
-
Alexey Samsonov authored
llvm-svn: 176020
-
Alexey Samsonov authored
[Sanitizer] fix signed/unsigned compare warnings in sanitizer_stacktrace_test. Build sanitizer_common tests with -Werror as we use predictable just-built Clang for building them llvm-svn: 176014
-
Alexey Samsonov authored
llvm-svn: 176013
-
Alexey Samsonov authored
llvm-svn: 176012
-