[all-commits] [llvm/llvm-project] 5213f3: Revert "Problem with realpath interceptor"
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Wed Aug 25 13:55:35 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5213f307abf2d2ce70c103e758f2e72b24539cb3
https://github.com/llvm/llvm-project/commit/5213f307abf2d2ce70c103e758f2e72b24539cb3
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2021-08-25 (Wed, 25 Aug 2021)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
Log Message:
-----------
Revert "Problem with realpath interceptor"
Breaks realpath(, nullptr) for all sanitizers.
Somehow INTERCEPT_FUNCTION and INTERCEPT_FUNCTION_VER return
false even if everything seemingly right.
And this is the issue for COMMON_INTERCEPT_FUNCTION_GLIBC_VER_MIN.
There is a check in every sanitlizer:
if (!INTERCEPT_FUNCTION_VER(name, ver) && !INTERCEPT_FUNCTION(name))
For non-versioned interceptors when INTERCEPT_FUNCTION returns false
it's not considered fatal, and it just prints a warning.
However INTERCEPT_FUNCTION_VER in this case will fallback to
INTERCEPT_FUNCTION replacing realpath with wrong version.
We need to investigate that before relanding the patch.
This reverts commit faef0d042f523357fe5590e7cb6a8391cf0351a8.
More information about the All-commits
mailing list