Skip to content

Commit

Permalink
Reland "hwasan: Disable operator {new,delete} interceptors when inter…
Browse files Browse the repository at this point in the history
…ceptors are disabled."

There was a discrepancy in the gn build which is now fixed.

Differential Revision: https://reviews.llvm.org/D89827
  • Loading branch information
pcc committed Oct 28, 2020
1 parent 19cfe5a commit 864b3a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler-rt/lib/hwasan/hwasan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 864b3a3

Please sign in to comment.