[compiler-rt] r301243 - [asan] Use posix strerror_r interceptor on android.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 24 13:25:39 PDT 2017
Author: eugenis
Date: Mon Apr 24 15:25:39 2017
New Revision: 301243
URL: http://llvm.org/viewvc/llvm-project?rev=301243&view=rev
Log:
[asan] Use posix strerror_r interceptor on android.
This fixes a regression in r297315.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc?rev=301243&r1=301242&r2=301243&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc Mon Apr 24 15:25:39 2017
@@ -3330,7 +3330,7 @@ INTERCEPTOR(char *, strerror, int errnum
// * GNU version returns message pointer, which points to either buf or some
// static storage.
#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) || \
- SANITIZER_MAC
+ SANITIZER_MAC || SANITIZER_ANDROID
// POSIX version. Spec is not clear on whether buf is NULL-terminated.
// At least on OSX, buf contents are valid even when the call fails.
INTERCEPTOR(int, strerror_r, int errnum, char *buf, SIZE_T buflen) {
More information about the llvm-commits
mailing list