HomePhabricator

Add __lsan::ScopedInterceptorDisabler for strerror(3)

Authored by krytarowski on Sep 21 2019, 12:45 AM.

Description

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

Details

Committed
krytarowskiSep 21 2019, 12:45 AM
Reviewer
vitalybuka
Differential Revision
D67337: Add __lsan::ScopedInterceptorDisabler for strerror(3)
Parents
rG5fe1e55d3541: Avoid memory leak in ASan test
Branches
Unknown
Tags
Unknown