[sanitizer] Intercept sem_open/sem_unlink
authorVitaly Buka <vitalybuka@google.com>
Fri, 6 Aug 2021 02:47:48 +0000 (19:47 -0700)
committerVitaly Buka <vitalybuka@google.com>
Tue, 10 Aug 2021 08:11:16 +0000 (01:11 -0700)
commitf33d51d592d60422f1e0ce6e4de12647943da93b
treea3d235ba2490768295b24c36ebd2c19b3dda4fcc
parentbb2a92e66e042703fd13a82a7d5ea02fbbb01543
[sanitizer] Intercept sem_open/sem_unlink

Without interceptor implementation may call strlen on internal
buffers causing false msan errors.

Differential Revision: https://reviews.llvm.org/D107615
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/test/sanitizer_common/TestCases/Posix/sem_open.cpp [new file with mode: 0644]