summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2012-06-28 18:20:50 +0000
committerDmitry Vyukov <dvyukov@google.com>2012-06-28 18:20:50 +0000
commita932bdfc1ed02ba6806bf2726d3a75b8d37f3316 (patch)
treef0eb2caa271b447e7a340709defdb60a8f462555
parent7f3bdb37dac5427c84fb2014622bbfe5fea60f97 (diff)
downloadbcm5719-llvm-a932bdfc1ed02ba6806bf2726d3a75b8d37f3316.tar.gz
bcm5719-llvm-a932bdfc1ed02ba6806bf2726d3a75b8d37f3316.zip
tsan: clear shadow for ucontext, because it's visible to user
llvm-svn: 159365
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_interceptors.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
index e6d323a6a56..27eb35d4558 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
@@ -117,6 +117,7 @@ static SignalContext *SigCtx(ThreadState *thr) {
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;
}
OpenPOWER on IntegriCloud