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_*).
Paths
| Differential D50570
[hwasan] Provide __sanitizer_* aliases to allocator functions. ClosedPublic Authored by eugenis on Aug 10 2018, 10:16 AM.
Details Summary Export __sanitizer_malloc, etc as aliases to malloc, etc. Both jemalloc and tcmalloc provide similar aliases (je_* and tc_*).
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 10 2018, 10:54 AM Closed by commit rL339614: [hwasan] Provide __sanitizer_* aliases to allocator functions. (authored by eugenis). · Explain WhyAug 13 2018, 2:08 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 160135 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.h
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
compiler-rt/test/hwasan/TestCases/sanitizer_malloc.cc
|