summaryrefslogtreecommitdiff
path: root/lib/asan/asan_mapping.h
diff options
context:
space:
mode:
authorDavid Major <dmajor@mozilla.com>2018-05-11 14:23:39 +0000
committerDavid Major <dmajor@mozilla.com>2018-05-11 14:23:39 +0000
commitd55f7bdbe7079a3d331d8ac7d0e82352eaf26af1 (patch)
treeee8269a98465f4e8a75a258dec4d87ac96e435b6 /lib/asan/asan_mapping.h
parentcb2d71ce010a8171c48fccbf48182ed54d8d75a0 (diff)
[ASan] Fix range check in AddrIsInHighShadow
This appears to be a copy/paste artifact from `AddrIsInHighMem`. It was caught by Firefox's jit-tests on Win64. Differential Revision: https://reviews.llvm.org/D46291 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_mapping.h')
-rw-r--r--lib/asan/asan_mapping.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asan/asan_mapping.h b/lib/asan/asan_mapping.h
index fd0d188c2..a9027533d 100644
--- a/lib/asan/asan_mapping.h
+++ b/lib/asan/asan_mapping.h
@@ -329,12 +329,12 @@ static inline uptr MemToShadow(uptr p) {
static inline bool AddrIsInHighShadow(uptr a) {
PROFILE_ASAN_MAPPING();
- return a >= kHighShadowBeg && a <= kHighMemEnd;
+ return a >= kHighShadowBeg && a <= kHighShadowEnd;
}
static inline bool AddrIsInMidShadow(uptr a) {
PROFILE_ASAN_MAPPING();
- return kMidMemBeg && a >= kMidShadowBeg && a <= kMidMemEnd;
+ return kMidMemBeg && a >= kMidShadowBeg && a <= kMidShadowEnd;
}
static inline bool AddrIsInShadow(uptr a) {