[compiler-rt] r286187 - [asan] Fix one test on Android N.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 16:59:54 PST 2016


Author: eugenis
Date: Mon Nov  7 18:59:54 2016
New Revision: 286187

URL: http://llvm.org/viewvc/llvm-project?rev=286187&view=rev
Log:
[asan] Fix one test on Android N.

A fake strtol interceptor should at least make forward progress.

Modified:
    compiler-rt/trunk/test/asan/TestCases/interception_failure_test.cc

Modified: compiler-rt/trunk/test/asan/TestCases/interception_failure_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/interception_failure_test.cc?rev=286187&r1=286186&r2=286187&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/interception_failure_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/interception_failure_test.cc Mon Nov  7 18:59:54 2016
@@ -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;
 }
 




More information about the llvm-commits mailing list