[compiler-rt] r203776 - FastPoisonShadow: check for MmapFixedNoReserve failures
Timur Iskhodzhanov
timurrrr at google.com
Thu Mar 13 03:08:46 PDT 2014
Author: timurrrr
Date: Thu Mar 13 05:08:45 2014
New Revision: 203776
URL: http://llvm.org/viewvc/llvm-project?rev=203776&view=rev
Log:
FastPoisonShadow: check for MmapFixedNoReserve failures
Modified:
compiler-rt/trunk/lib/asan/asan_poisoning.h
Modified: compiler-rt/trunk/lib/asan/asan_poisoning.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_poisoning.h?rev=203776&r1=203775&r2=203776&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_poisoning.h (original)
+++ compiler-rt/trunk/lib/asan/asan_poisoning.h Thu Mar 13 05:08:45 2014
@@ -55,7 +55,8 @@ ALWAYS_INLINE void FastPoisonShadow(uptr
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);
}
}
}
More information about the llvm-commits
mailing list