[PATCH] D46291: [ASan] Fix range check in AddrIsInHighShadow

David Major via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 30 15:07:59 PDT 2018


dmajor created this revision.
dmajor added a reviewer: rnk.
Herald added subscribers: Sanitizers, kubamracek.

This appears to be a copy/paste artifact from `AddrIsInHighMem`. It was caught by Firefox's jit-tests on Win64.


Repository:
  rCRT Compiler Runtime

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,7 +319,7 @@
 
 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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46291.144643.patch
Type: text/x-patch
Size: 411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180430/3c35dee3/attachment.bin>


More information about the llvm-commits mailing list