[asan] Use posix strerror_r interceptor on android.
This fixes a regression in r297315. llvm-svn: 301243
This commit is contained in:
parent
4474652c95
commit
ed8c47477f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue