diff options
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | 1 |
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; } |