projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7c94ef
)
Disable recursive interception for tzset in MSan
author
Kamil Rytarowski
<n54@gmx.com>
Sun, 4 Nov 2018 15:30:38 +0000
(15:30 +0000)
committer
Kamil 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
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/msan/msan_interceptors.cc
b/compiler-rt/lib/msan/msan_interceptors.cc
index
393a990
..
07300f3
100644
(file)
--- a/
compiler-rt/lib/msan/msan_interceptors.cc
+++ b/
compiler-rt/lib/msan/msan_interceptors.cc
@@
-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);