Add __lsan::ScopedInterceptorDisabler for strerror(3)
authorKamil Rytarowski <n54@gmx.com>
Sat, 21 Sep 2019 07:45:02 +0000 (07:45 +0000)
committerKamil Rytarowski <n54@gmx.com>
Sat, 21 Sep 2019 07:45:02 +0000 (07:45 +0000)
commit1b58389428ed07a7322ba9c2bcaeec99807f9457
tree796e5dda719ea5d9561f1d05cd7fb490dbd24a5a
parent5fe1e55d35413b1904cfcf16ec15495398921fe5
Add __lsan::ScopedInterceptorDisabler for strerror(3)

Summary:
strerror(3) on NetBSD uses internally TSD with a destructor that is never
fired for exit(3). It's correctly called for pthread_exit(3) scenarios.

This is a case when a leak on exit(3) is expected, unavoidable and harmless.

Reviewers: joerg, vitalybuka, dvyukov, mgorny

Reviewed By: vitalybuka

Subscribers: dmgreen, kristof.beyls, jfb, llvm-commits, #sanitizers

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D67337

llvm-svn: 372461
compiler-rt/lib/asan/asan_interceptors.cpp
compiler-rt/lib/lsan/lsan_interceptors.cpp
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc