[sanitizer] Intercept lstat on Linux
authorVitaly Buka <vitalybuka@google.com>
Sat, 6 Nov 2021 07:49:51 +0000 (00:49 -0700)
committerVitaly Buka <vitalybuka@google.com>
Sat, 6 Nov 2021 07:52:54 +0000 (00:52 -0700)
commit39ead64e3f73045c7e0c72aed08c14b277828fb4
tree8dcbc89c040a066d2490dff488aabbf885e375e0
parent0dc856ed20e0fb64dd7cb0a10db35c58c3ef95e6
[sanitizer] Intercept lstat on Linux

It's availible from GLIBC 2.33
Fixes use-of-uninitialized-value llvm/lib/Support/Unix/Path.inc:467:29 in llvm::sys::fs::remove(llvm::Twine const&, bool)
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h