[PATCH] D92519: [tsan] Use REAL macro when calling intercepted function
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 2 15:56:03 PST 2020
tstellar created this revision.
tstellar added a reviewer: dvyukov.
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/D92519
Files:
compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
Index: compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
===================================================================
--- compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
+++ compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
@@ -2452,7 +2452,7 @@
internal_memset(&act.sa_mask, -1, sizeof(act.sa_mask));
act.sa_flags = 0;
__sanitizer_sigaction old;
- int res = sigaction_symname(sig, &act, &old);
+ int res = REAL(sigaction_symname)(sig, &act, &old);
if (res) return (__sanitizer_sighandler_ptr)sig_err;
return old.handler;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92519.309085.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201202/a8cdc892/attachment.bin>
More information about the llvm-commits
mailing list