forked from OSchip/llvm-project
[ASan] Replace the call to "vname" with "WRAP(vname)" in FORMAT_INTERCEPTOR_IMPL
It's incorrect to call the function by its name in the interceptor, because that means WRAP(vname) on Linux and REAL(vname) on OSX. This patch fixes asan/lit_tests/TestCases/printf-3.c on Mac. llvm-svn: 200749
This commit is contained in:
parent
b965a2fa32
commit
2e7dc60ee3
|
@ -579,7 +579,7 @@ INTERCEPTOR(char *, strptime, char *s, char *format, __sanitizer_tm *tm) {
|
|||
va_list ap; \
|
||||
va_start(ap, format); \
|
||||
COMMON_INTERCEPTOR_ENTER(ctx, vname, __VA_ARGS__, ap); \
|
||||
int res = vname(__VA_ARGS__, ap); \
|
||||
int res = WRAP(vname)(__VA_ARGS__, ap); \
|
||||
va_end(ap); \
|
||||
return res; \
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue