Lines Matching refs:uptr
34 void PoisonShadow(uptr addr, uptr size, u8 value) { in PoisonShadow()
44 void PoisonShadowPartialRightRedzone(uptr addr, in PoisonShadowPartialRightRedzone()
45 uptr size, in PoisonShadowPartialRightRedzone()
46 uptr redzone_size, in PoisonShadowPartialRightRedzone()
59 explicit ShadowSegmentEndpoint(uptr address) { in ShadowSegmentEndpoint()
66 void FlushUnneededASanShadowMemory(uptr p, uptr size) { in FlushUnneededASanShadowMemory()
69 uptr page_size = GetPageSizeCached(); in FlushUnneededASanShadowMemory()
70 uptr shadow_beg = RoundUpTo(MemToShadow(p), page_size); in FlushUnneededASanShadowMemory()
71 uptr shadow_end = RoundDownTo(MemToShadow(p + size), page_size); in FlushUnneededASanShadowMemory()
75 void AsanPoisonOrUnpoisonIntraObjectRedzone(uptr ptr, uptr size, bool poison) { in AsanPoisonOrUnpoisonIntraObjectRedzone()
76 uptr end = ptr + size; in AsanPoisonOrUnpoisonIntraObjectRedzone()
111 void __asan_poison_memory_region(void const volatile *addr, uptr size) { in __asan_poison_memory_region()
113 uptr beg_addr = (uptr)addr; in __asan_poison_memory_region()
114 uptr end_addr = beg_addr + size; in __asan_poison_memory_region()
151 void __asan_unpoison_memory_region(void const volatile *addr, uptr size) { in __asan_unpoison_memory_region()
153 uptr beg_addr = (uptr)addr; in __asan_unpoison_memory_region()
154 uptr end_addr = beg_addr + size; in __asan_unpoison_memory_region()
182 return __asan::AddressIsPoisoned((uptr)addr); in __asan_address_is_poisoned()
185 uptr __asan_region_is_poisoned(uptr beg, uptr size) { in __asan_region_is_poisoned()
187 uptr end = beg + size; in __asan_region_is_poisoned()
191 uptr aligned_b = RoundUpTo(beg, SHADOW_GRANULARITY); in __asan_region_is_poisoned()
192 uptr aligned_e = RoundDownTo(end, SHADOW_GRANULARITY); in __asan_region_is_poisoned()
193 uptr shadow_beg = MemToShadow(aligned_b); in __asan_region_is_poisoned()
194 uptr shadow_end = MemToShadow(aligned_e); in __asan_region_is_poisoned()
215 uptr __p = reinterpret_cast<uptr>(p); \
216 uptr __size = size; \
220 uptr __bad = __asan_region_is_poisoned(__p, __size); \
263 void __asan_poison_cxx_array_cookie(uptr p) { in __asan_poison_cxx_array_cookie()
266 uptr s = MEM_TO_SHADOW(p); in __asan_poison_cxx_array_cookie()
271 uptr __asan_load_cxx_array_cookie(uptr *p) { in __asan_load_cxx_array_cookie()
274 uptr s = MEM_TO_SHADOW(reinterpret_cast<uptr>(p)); in __asan_load_cxx_array_cookie()
294 static void PoisonAlignedStackMemory(uptr addr, uptr size, bool do_poison) { in PoisonAlignedStackMemory()
296 uptr aligned_size = size & ~(SHADOW_GRANULARITY - 1); in PoisonAlignedStackMemory()
317 void __asan_poison_stack_memory(uptr addr, uptr size) { in __asan_poison_stack_memory()
322 void __asan_unpoison_stack_memory(uptr addr, uptr size) { in __asan_unpoison_stack_memory()
334 uptr beg = reinterpret_cast<uptr>(beg_p); in __sanitizer_annotate_contiguous_container()
335 uptr end = reinterpret_cast<uptr>(end_p); in __sanitizer_annotate_contiguous_container()
336 uptr old_mid = reinterpret_cast<uptr>(old_mid_p); in __sanitizer_annotate_contiguous_container()
337 uptr new_mid = reinterpret_cast<uptr>(new_mid_p); in __sanitizer_annotate_contiguous_container()
338 uptr granularity = SHADOW_GRANULARITY; in __sanitizer_annotate_contiguous_container()
348 uptr a = RoundDownTo(Min(old_mid, new_mid), granularity); in __sanitizer_annotate_contiguous_container()
349 uptr c = RoundUpTo(Max(old_mid, new_mid), granularity); in __sanitizer_annotate_contiguous_container()
350 uptr d1 = RoundDownTo(old_mid, granularity); in __sanitizer_annotate_contiguous_container()
366 uptr b1 = RoundDownTo(new_mid, granularity); in __sanitizer_annotate_contiguous_container()
367 uptr b2 = RoundUpTo(new_mid, granularity); in __sanitizer_annotate_contiguous_container()
382 uptr beg = reinterpret_cast<uptr>(beg_p); in __sanitizer_verify_contiguous_container()
383 uptr end = reinterpret_cast<uptr>(end_p); in __sanitizer_verify_contiguous_container()
384 uptr mid = reinterpret_cast<uptr>(mid_p); in __sanitizer_verify_contiguous_container()
389 uptr kMaxRangeToCheck = 32; in __sanitizer_verify_contiguous_container()
390 uptr r1_beg = beg; in __sanitizer_verify_contiguous_container()
391 uptr r1_end = Min(end + kMaxRangeToCheck, mid); in __sanitizer_verify_contiguous_container()
392 uptr r2_beg = Max(beg, mid - kMaxRangeToCheck); in __sanitizer_verify_contiguous_container()
393 uptr r2_end = Min(end, mid + kMaxRangeToCheck); in __sanitizer_verify_contiguous_container()
394 uptr r3_beg = Max(end - kMaxRangeToCheck, mid); in __sanitizer_verify_contiguous_container()
395 uptr r3_end = end; in __sanitizer_verify_contiguous_container()
396 for (uptr i = r1_beg; i < r1_end; i++) in __sanitizer_verify_contiguous_container()
399 for (uptr i = r2_beg; i < mid; i++) in __sanitizer_verify_contiguous_container()
402 for (uptr i = mid; i < r2_end; i++) in __sanitizer_verify_contiguous_container()
405 for (uptr i = r3_beg; i < r3_end; i++) in __sanitizer_verify_contiguous_container()
412 void __asan_poison_intra_object_redzone(uptr ptr, uptr size) { in __asan_poison_intra_object_redzone()
417 void __asan_unpoison_intra_object_redzone(uptr ptr, uptr size) { in __asan_unpoison_intra_object_redzone()
423 bool WordIsPoisoned(uptr addr) { in WordIsPoisoned()
424 return (__asan_region_is_poisoned(addr, sizeof(uptr)) != 0); in WordIsPoisoned()