diff options
author | Russell Gallop <russell.gallop@gmail.com> | 2019-10-10 10:56:52 +0000 |
---|---|---|
committer | Russell Gallop <russell.gallop@gmail.com> | 2019-10-10 10:56:52 +0000 |
commit | c48e0873af43eb245cdcca7b9822d2ff8646231c (patch) | |
tree | 3dd18e74053f68fa57da4840415694133a94d59c /compiler-rt/lib/sanitizer_common/sanitizer_common.h | |
parent | 186f1c58c5ea62b0149d47b2b7b5b3396589fdb0 (diff) | |
download | bcm5719-llvm-c48e0873af43eb245cdcca7b9822d2ff8646231c.tar.gz bcm5719-llvm-c48e0873af43eb245cdcca7b9822d2ff8646231c.zip |
Revert "[ASan] Do not misrepresent high value address dereferences as null dereferences"
As it was breaking bots running sanitizer lint check
This reverts r374265 (git b577efe4567f1f6a711ad36e1d17280dd1c4f009)
llvm-svn: 374308
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_common.h')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h index 87b8f02b5b7..ad056df387d 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h @@ -881,11 +881,6 @@ struct SignalContext { bool is_memory_access; enum WriteFlag { UNKNOWN, READ, WRITE } write_flag; - // In some cases the kernel cannot provide the true faulting address; `addr` - // will be zero then. This field allows to distinguish between these cases - // and dereferences of null. - bool is_true_faulting_addr; - // VS2013 doesn't implement unrestricted unions, so we need a trivial default // constructor SignalContext() = default; @@ -898,8 +893,7 @@ struct SignalContext { context(context), addr(GetAddress()), is_memory_access(IsMemoryAccess()), - write_flag(GetWriteFlag()), - is_true_faulting_addr(IsTrueFaultingAddress()) { + write_flag(GetWriteFlag()) { InitPcSpBp(); } @@ -920,7 +914,6 @@ struct SignalContext { uptr GetAddress() const; WriteFlag GetWriteFlag() const; bool IsMemoryAccess() const; - bool IsTrueFaultingAddress() const; }; void InitializePlatformEarly(); |