[PATCH] D50570: [hwasan] Provide __sanitizer_* aliases to allocator functions.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 10 10:16:28 PDT 2018


eugenis created this revision.
eugenis added reviewers: vitalybuka, kcc.
Herald added a subscriber: kubamracek.

Export __sanitizer_malloc, etc as aliases to malloc, etc.
This way users can wrap sanitizer malloc, even in fully static binaries.

Both jemalloc and tcmalloc provide similar aliases (je_* and tc_*).


https://reviews.llvm.org/D50570

Files:
  compiler-rt/include/sanitizer/allocator_interface.h
  compiler-rt/include/sanitizer/hwasan_interface.h
  compiler-rt/lib/hwasan/hwasan_interceptors.cc
  compiler-rt/lib/msan/msan_interceptors.cc
  compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
  compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
  compiler-rt/test/hwasan/TestCases/sanitizer_malloc.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50570.160135.patch
Type: text/x-patch
Size: 6779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180810/2b4f3161/attachment.bin>


More information about the llvm-commits mailing list