forked from OSchip/llvm-project
Disable recursive interception for tzset in MSan
This fixes sanitization of this library call on NetBSD. Extracted as a part of D42050. llvm-svn: 346098
This commit is contained in:
parent
e7c94ef1de
commit
538d678737
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue