[compiler-rt] r346098 - Disable recursive interception for tzset in MSan

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 4 07:30:38 PST 2018


Author: kamil
Date: Sun Nov  4 07:30:38 2018
New Revision: 346098

URL: http://llvm.org/viewvc/llvm-project?rev=346098&view=rev
Log:
Disable recursive interception for tzset in MSan

This fixes sanitization of this library call on NetBSD.
Extracted as a part of D42050.

Modified:
    compiler-rt/trunk/lib/msan/msan_interceptors.cc

Modified: compiler-rt/trunk/lib/msan/msan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_interceptors.cc?rev=346098&r1=346097&r2=346098&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/msan/msan_interceptors.cc Sun Nov  4 07:30:38 2018
@@ -1072,6 +1072,7 @@ extern char *tzname[2];
 
 INTERCEPTOR(void, tzset, int fake) {
   ENSURE_MSAN_INITED();
+  InterceptorScope interceptor_scope;
   REAL(tzset)(fake);
   if (tzname[0])
     __msan_unpoison(tzname[0], REAL(strlen)(tzname[0]) + 1);




More information about the llvm-commits mailing list