diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-03-13 10:08:45 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-03-13 10:08:45 +0000 |
commit | 1b382467fc1177c6d77349f503cc9f52f76bf7e6 (patch) | |
tree | 561c03e8f50a683f415ad540ade05db1c36da6e5 | |
parent | 471b11cc0b977e4943395c718ef81ce767706298 (diff) | |
download | compiler-rt-1b382467fc1177c6d77349f503cc9f52f76bf7e6.tar.gz |
FastPoisonShadow: check for MmapFixedNoReserve failures
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203776 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/asan/asan_poisoning.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asan/asan_poisoning.h b/lib/asan/asan_poisoning.h index 4139faccb..d79190a6e 100644 --- a/lib/asan/asan_poisoning.h +++ b/lib/asan/asan_poisoning.h @@ -55,7 +55,8 @@ ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size, if (page_end != shadow_end) { REAL(memset)((void *)page_end, 0, shadow_end - page_end); } - MmapFixedNoReserve(page_beg, page_end - page_beg); + void *res = MmapFixedNoReserve(page_beg, page_end - page_beg); + CHECK_EQ(page_beg, res); } } } |