forked from OSchip/llvm-project
parent
e297006d6f
commit
e412cc402e
|
@ -304,7 +304,6 @@ extern uptr kHighMemEnd, kMidMemBeg, kMidMemEnd; // Initialized in __asan_init.
|
|||
|
||||
namespace __asan {
|
||||
|
||||
static inline uptr MemToShadowSize(uptr size) { return size >> SHADOW_SCALE; }
|
||||
static inline bool AddrIsInLowMem(uptr a) {
|
||||
PROFILE_ASAN_MAPPING();
|
||||
return a <= kLowMemEnd;
|
||||
|
@ -356,6 +355,8 @@ static inline bool AddrIsInShadowGap(uptr a) {
|
|||
|
||||
namespace __asan {
|
||||
|
||||
static inline uptr MemToShadowSize(uptr size) { return size >> SHADOW_SCALE; }
|
||||
|
||||
static inline bool AddrIsInMem(uptr a) {
|
||||
PROFILE_ASAN_MAPPING();
|
||||
return AddrIsInLowMem(a) || AddrIsInMidMem(a) || AddrIsInHighMem(a) ||
|
||||
|
|
|
@ -61,7 +61,6 @@
|
|||
|
||||
namespace __asan {
|
||||
|
||||
static inline uptr MemToShadowSize(uptr size) { return size >> SHADOW_SCALE; }
|
||||
static inline bool AddrIsInLowMem(uptr a) {
|
||||
PROFILE_ASAN_MAPPING();
|
||||
return a <= kLowMemEnd;
|
||||
|
|
Loading…
Reference in New Issue