[PATCH] D92518: [msan] Use REAL macro when calling intercepted function

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 2 15:54:40 PST 2020


tstellar created this revision.
tstellar added a reviewer: eugenis.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
tstellar requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92518

Files:
  compiler-rt/lib/msan/msan_interceptors.cpp


Index: compiler-rt/lib/msan/msan_interceptors.cpp
===================================================================
--- compiler-rt/lib/msan/msan_interceptors.cpp
+++ compiler-rt/lib/msan/msan_interceptors.cpp
@@ -481,7 +481,7 @@
   ENSURE_MSAN_INITED();
   va_list ap;
   va_start(ap, format);
-  int res = vswprintf(str, size, format, ap);
+  int res = REAL(vswprintf)(str, size, format, ap);
   va_end(ap);
   return res;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92518.309084.patch
Type: text/x-patch
Size: 430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201202/50584ebd/attachment.bin>


More information about the llvm-commits mailing list