[PATCH] D61347: [Sanitizer] Reland of "Cleanup of INTERCEPT_FUNCTION macro"

Julian Lettner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 15:06:35 PDT 2019


yln created this revision.
Herald added subscribers: llvm-commits, Sanitizers, kubamracek.
Herald added projects: Sanitizers, LLVM.

On Linux both version of the INTERCEPT_FUNCTION macro now return true
when interception was successful. Cleanup some usages.

Also note that `&(func) == WRAP(func)` is a link-time property, but we
do a runtime check.

Tested on Linux and macOS.

Previously reverted in: 5642c3feb03d020dc06a62e3dc54f3206a97a391 <https://reviews.llvm.org/rG5642c3feb03d020dc06a62e3dc54f3206a97a391>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D61347

Files:
  compiler-rt/lib/asan/asan_interceptors.h
  compiler-rt/lib/interception/interception_linux.cc
  compiler-rt/lib/interception/interception_linux.h
  compiler-rt/lib/interception/tests/interception_linux_test.cc
  compiler-rt/lib/msan/msan_interceptors.cc
  compiler-rt/lib/tsan/rtl/tsan_interceptors.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61347.197455.patch
Type: text/x-patch
Size: 7179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190430/f876349c/attachment.bin>


More information about the llvm-commits mailing list