[PATCH] D89827: hwasan: Disable operator {new,delete} interceptors when interceptors are disabled.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 23 21:04:18 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfa66bcf4bc94: hwasan: Disable operator {new,delete} interceptors when interceptors areā¦ (authored by pcc).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89827/new/
https://reviews.llvm.org/D89827
Files:
compiler-rt/lib/hwasan/hwasan.h
Index: compiler-rt/lib/hwasan/hwasan.h
===================================================================
--- compiler-rt/lib/hwasan/hwasan.h
+++ compiler-rt/lib/hwasan/hwasan.h
@@ -21,10 +21,6 @@
#include "hwasan_flags.h"
#include "ubsan/ubsan_platform.h"
-#ifndef HWASAN_REPLACE_OPERATORS_NEW_AND_DELETE
-# define HWASAN_REPLACE_OPERATORS_NEW_AND_DELETE 1
-#endif
-
#ifndef HWASAN_CONTAINS_UBSAN
# define HWASAN_CONTAINS_UBSAN CAN_SANITIZE_UB
#endif
@@ -33,6 +29,10 @@
#define HWASAN_WITH_INTERCEPTORS 0
#endif
+#ifndef HWASAN_REPLACE_OPERATORS_NEW_AND_DELETE
+#define HWASAN_REPLACE_OPERATORS_NEW_AND_DELETE HWASAN_WITH_INTERCEPTORS
+#endif
+
typedef u8 tag_t;
// TBI (Top Byte Ignore) feature of AArch64: bits [63:56] are ignored in address
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89827.300454.patch
Type: text/x-patch
Size: 761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201024/5b6f90e0/attachment.bin>
More information about the llvm-commits
mailing list