[PATCH] D36028: [sanitizer_common] Fuchsia support for interceptors

Roland McGrath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 28 15:39:22 PDT 2017


mcgrathr created this revision.
mcgrathr added a project: Sanitizers.
Herald added a subscriber: kubamracek.

Actually Fuchsia non-support for interceptors.  Fuchsia doesn't use
interceptors in the common sense at all.  Almost all system library
functions don't need interception at all, because the system
libraries are just themselves compiled with sanitizers enabled and
have specific hook interfaces where needed to inform the sanitizer
runtime about thread lifetimes and the like.  For the few functions
that do get intercepted, they don't use a generic mechanism like
dlsym with RTLD_NEXT to find the underlying system library function.
Instead, they use specific extra symbol names published by the
system library (e.g. __unsanitized_memcpy).

Fuchsia is neither Windows nor POSIX.  The SI_NOT_WINDOWS macro in
sanitizer_platform_interceptors.h was already effectively the same
as SI_POSIX, so just use SI_POSIX instead.


Repository:
  rL LLVM

https://reviews.llvm.org/D36028

Files:
  lib/interception/interception.h
  lib/sanitizer_common/sanitizer_common_interceptors.inc
  lib/sanitizer_common/sanitizer_platform_interceptors.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36028.108728.patch
Type: text/x-patch
Size: 23037 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170728/f4409c28/attachment.bin>


More information about the llvm-commits mailing list