Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 faef0d0.
- Loading branch information