From 4fcbb24debd0251ce52789b87c020036e2cf8970 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 8 Nov 2016 00:59:54 +0000 Subject: [PATCH] [asan] Fix one test on Android N. A fake strtol interceptor should at least make forward progress. llvm-svn: 286187 --- compiler-rt/test/asan/TestCases/interception_failure_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/test/asan/TestCases/interception_failure_test.cc b/compiler-rt/test/asan/TestCases/interception_failure_test.cc index b20c9f1..ee94101 100644 --- a/compiler-rt/test/asan/TestCases/interception_failure_test.cc +++ b/compiler-rt/test/asan/TestCases/interception_failure_test.cc @@ -16,6 +16,8 @@ extern "C" long strtol(const char *nptr, char **endptr, int base) { fprintf(stderr, "my_strtol_interceptor\n"); + if (endptr) + *endptr = (char*)nptr + strlen(nptr); return 0; } -- 2.7.4