Disable recursive interception for tzset in MSan
authorKamil Rytarowski <n54@gmx.com>
Sun, 4 Nov 2018 15:30:38 +0000 (15:30 +0000)
committerKamil Rytarowski <n54@gmx.com>
Sun, 4 Nov 2018 15:30:38 +0000 (15:30 +0000)
This fixes sanitization of this library call on NetBSD.
Extracted as a part of D42050.

llvm-svn: 346098

compiler-rt/lib/msan/msan_interceptors.cc

index 393a990..07300f3 100644 (file)
@@ -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);