[PATCH] D46291: [ASan] Fix range check in AddrIsInHighShadow
David Major via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 1 13:33:47 PDT 2018
dmajor updated this revision to Diff 144773.
dmajor added a comment.
Fixed `AddrIsInMidShadow` too.
https://reviews.llvm.org/D46291
Files:
lib/asan/asan_mapping.h
Index: lib/asan/asan_mapping.h
===================================================================
--- lib/asan/asan_mapping.h
+++ lib/asan/asan_mapping.h
@@ -319,12 +319,12 @@
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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46291.144773.patch
Type: text/x-patch
Size: 619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180501/26725d87/attachment.bin>
More information about the llvm-commits
mailing list