Home
last modified time | relevance | path

Searched refs:IsAccessibleMemoryRange (Results 1 – 20 of 20) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_posix_test.cc62 TEST(SanitizerCommon, IsAccessibleMemoryRange) { in TEST() argument
68 EXPECT_TRUE(IsAccessibleMemoryRange(mem, page_size - 1)); in TEST()
69 EXPECT_TRUE(IsAccessibleMemoryRange(mem, page_size)); in TEST()
70 EXPECT_FALSE(IsAccessibleMemoryRange(mem, page_size + 1)); in TEST()
71 EXPECT_TRUE(IsAccessibleMemoryRange(mem + page_size - 1, 1)); in TEST()
72 EXPECT_FALSE(IsAccessibleMemoryRange(mem + page_size - 1, 2)); in TEST()
73 EXPECT_FALSE(IsAccessibleMemoryRange(mem + 2 * page_size - 1, 1)); in TEST()
74 EXPECT_TRUE(IsAccessibleMemoryRange(mem + 2 * page_size, page_size)); in TEST()
75 EXPECT_FALSE(IsAccessibleMemoryRange(mem, 3 * page_size)); in TEST()
76 EXPECT_FALSE(IsAccessibleMemoryRange(0x0, 2)); in TEST()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_posix_test.cpp66 TEST(SanitizerCommon, IsAccessibleMemoryRange) { in TEST() argument
72 EXPECT_TRUE(IsAccessibleMemoryRange(mem, page_size - 1)); in TEST()
73 EXPECT_TRUE(IsAccessibleMemoryRange(mem, page_size)); in TEST()
74 EXPECT_FALSE(IsAccessibleMemoryRange(mem, page_size + 1)); in TEST()
75 EXPECT_TRUE(IsAccessibleMemoryRange(mem + page_size - 1, 1)); in TEST()
76 EXPECT_FALSE(IsAccessibleMemoryRange(mem + page_size - 1, 2)); in TEST()
77 EXPECT_FALSE(IsAccessibleMemoryRange(mem + 2 * page_size - 1, 1)); in TEST()
78 EXPECT_TRUE(IsAccessibleMemoryRange(mem + 2 * page_size, page_size)); in TEST()
79 EXPECT_FALSE(IsAccessibleMemoryRange(mem, 3 * page_size)); in TEST()
80 EXPECT_FALSE(IsAccessibleMemoryRange(0x0, 2)); in TEST()
/external/compiler-rt/lib/ubsan/
Dubsan_type_hash_win.cc54 if (!IsAccessibleMemoryRange((uptr)obj_locator_ptr, sizeof(void*))) in getDynamicTypeInfoFromVtable()
58 if (!IsAccessibleMemoryRange((uptr)obj_locator, in getDynamicTypeInfoFromVtable()
72 if (!IsAccessibleMemoryRange((uptr)tinfo, sizeof(std::type_info))) in getDynamicTypeInfoFromVtable()
Dubsan_diag.cc265 if (!IsAccessibleMemoryRange(Min, Max - Min)) { in PrintMemorySnippet()
/external/llvm-project/compiler-rt/lib/ubsan/
Dubsan_type_hash_win.cpp53 if (!IsAccessibleMemoryRange((uptr)obj_locator_ptr, sizeof(void*))) in getDynamicTypeInfoFromVtable()
57 if (!IsAccessibleMemoryRange((uptr)obj_locator, in getDynamicTypeInfoFromVtable()
71 if (!IsAccessibleMemoryRange((uptr)tinfo, sizeof(std::type_info))) in getDynamicTypeInfoFromVtable()
Dubsan_type_hash_itanium.cpp201 if (!IsAccessibleMemoryRange((uptr)Prefix, sizeof(VtablePrefix))) in getVtablePrefix()
Dubsan_diag.cpp275 if (!IsAccessibleMemoryRange(Min, Max - Min)) { in PrintMemorySnippet()
/external/compiler-rt/lib/asan/
Dasan_posix.cc64 if (!IsStackAccess && IsAccessibleMemoryRange(sig.pc, 4)) { in AsanOnDeadlySignal()
Dasan_report.cc195 if (IsAccessibleMemoryRange(pc, 16)) { in MaybeDumpInstructionBytes()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cpp245 if (!IsStackAccess && IsAccessibleMemoryRange(pc, 4)) { in IsStackOverflow()
273 bool IsAccessibleMemoryRange(uptr beg, uptr size) { in IsAccessibleMemoryRange() function
Dsanitizer_symbolizer_report.cpp155 if (IsAccessibleMemoryRange(pc, 16)) { in MaybeDumpInstructionBytes()
Dsanitizer_rtems.cpp236 bool IsAccessibleMemoryRange(uptr beg, uptr size) { in IsAccessibleMemoryRange() function
Dsanitizer_fuchsia.cpp393 bool IsAccessibleMemoryRange(uptr beg, uptr size) { in IsAccessibleMemoryRange() function
Dsanitizer_common.h240 bool IsAccessibleMemoryRange(uptr beg, uptr size);
Dsanitizer_win.cpp914 bool IsAccessibleMemoryRange(uptr beg, uptr size) { in IsAccessibleMemoryRange() function
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cc202 bool IsAccessibleMemoryRange(uptr beg, uptr size) { in IsAccessibleMemoryRange() function
Dsanitizer_win.cc789 bool IsAccessibleMemoryRange(uptr beg, uptr size) { in IsAccessibleMemoryRange() function
Dsanitizer_common.h264 bool IsAccessibleMemoryRange(uptr beg, uptr size);
/external/compiler-rt/lib/lsan/
Dlsan_common.cc230 !IsAccessibleMemoryRange(stack_begin, 1)) { in ProcessThreads()
/external/llvm-project/compiler-rt/lib/lsan/
Dlsan_common.cpp271 !IsAccessibleMemoryRange(stack_begin, 1)) { in ProcessThreads()