[llvm-commits] [compiler-rt] r159365 - /compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
Dmitry Vyukov
dvyukov at google.com
Thu Jun 28 11:20:50 PDT 2012
Author: dvyukov
Date: Thu Jun 28 13:20:50 2012
New Revision: 159365
URL: http://llvm.org/viewvc/llvm-project?rev=159365&view=rev
Log:
tsan: clear shadow for ucontext, because it's visible to user
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc?rev=159365&r1=159364&r2=159365&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc Thu Jun 28 13:20:50 2012
@@ -117,6 +117,7 @@
ScopedInRtl in_rtl;
ctx = (SignalContext*)internal_alloc(
MBlockSignal, sizeof(*ctx));
+ MemoryResetRange(thr, 0, (uptr)ctx, sizeof(*ctx));
internal_memset(ctx, 0, sizeof(*ctx));
thr->signal_ctx = ctx;
}
More information about the llvm-commits
mailing list