summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_common.h
diff options
context:
space:
mode:
authorRussell Gallop <russell.gallop@gmail.com>2019-10-10 10:56:52 +0000
committerRussell Gallop <russell.gallop@gmail.com>2019-10-10 10:56:52 +0000
commitfe7f65b081d5d0b32270cb1a82e2ee9a0391a6d1 (patch)
tree539951269a99d4d5fd5a3194400a4fe61d451fec /lib/sanitizer_common/sanitizer_common.h
parent640d7e0a87981f53799ad7394c4cb93c928338c4 (diff)
downloadcompiler-rt-fe7f65b081d5d0b32270cb1a82e2ee9a0391a6d1.tar.gz
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) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@374308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common.h')
-rw-r--r--lib/sanitizer_common/sanitizer_common.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/sanitizer_common/sanitizer_common.h b/lib/sanitizer_common/sanitizer_common.h
index 87b8f02b5..ad056df38 100644
--- a/lib/sanitizer_common/sanitizer_common.h
+++ b/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();