[asan] Fix one test on Android N.
A fake strtol interceptor should at least make forward progress. llvm-svn: 286187
This commit is contained in:
parent
06e39a3aed
commit
4fcbb24deb
|
|
@ -16,6 +16,8 @@
|
||||||
|
|
||||||
extern "C" long strtol(const char *nptr, char **endptr, int base) {
|
extern "C" long strtol(const char *nptr, char **endptr, int base) {
|
||||||
fprintf(stderr, "my_strtol_interceptor\n");
|
fprintf(stderr, "my_strtol_interceptor\n");
|
||||||
|
if (endptr)
|
||||||
|
*endptr = (char*)nptr + strlen(nptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue