[PATCH] D48618: [scudo] Enable Scudo memory hooks for Fuchsia.
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 2 12:52:56 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT336139: [scudo] Enable Scudo memory hooks for Fuchsia. (authored by cryptoad, committed by ).
Herald added subscribers: Sanitizers, llvm-commits.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D48618
Files:
lib/scudo/scudo_platform.h
Index: lib/scudo/scudo_platform.h
===================================================================
--- lib/scudo/scudo_platform.h
+++ lib/scudo/scudo_platform.h
@@ -58,8 +58,12 @@
// Hooks in the allocation & deallocation paths can become a security concern if
// implemented improperly, or if overwritten by an attacker. Use with caution.
#ifndef SCUDO_CAN_USE_HOOKS
-# define SCUDO_CAN_USE_HOOKS 0
-#endif
+# if SANITIZER_FUCHSIA
+# define SCUDO_CAN_USE_HOOKS 1
+# else
+# define SCUDO_CAN_USE_HOOKS 0
+# endif // SANITIZER_FUCHSIA
+#endif // SCUDO_CAN_USE_HOOKS
namespace __scudo {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48618.153770.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180702/68475f70/attachment.bin>
More information about the llvm-commits
mailing list