[compiler-rt] [sanitizer] Large range support in IsAccessibleMemoryRange (PR #112665)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 11:17:54 PDT 2024
================
@@ -82,6 +82,17 @@ TEST(SanitizerCommon, IsAccessibleMemoryRange) {
munmap((void *)mem, 3 * page_size);
}
+TEST(SanitizerCommon, IsAccessibleMemoryRangeLarge) {
+ const int size = GetPageSize() * 10000;
+
+ uptr mem = (uptr)mmap(0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON,
+ -1, 0);
+
----------------
vitalybuka wrote:
irrelevant
https://github.com/llvm/llvm-project/pull/112665
More information about the llvm-commits
mailing list