From 2e7dc60ee349df0fb57fbc586f79986ccf1799e5 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Tue, 4 Feb 2014 09:35:09 +0000 Subject: [PATCH] [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 --- .../lib/sanitizer_common/sanitizer_common_interceptors.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc index bb26f724f788..ff1491fa61ac 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -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; \ }