Searched refs:MEM2SHADOW (Results 1 – 1 of 1) sorted by relevance
/external/swiftshader/third_party/subzero/runtime/ |
D | szrt_asan.c | 64 #define MEM2SHADOW(p) (((uintptr_t)(p) >> SHADOW_SCALE_LOG2) + shadow_offset) macro 117 char *shadow_addr = MEM2SHADOW(ptr); in __asan_error() 135 char *shadow_addr = (char *)MEM2SHADOW(ptr); in __asan_check() 183 if (mprotect(MEM2SHADOW(shadow_offset), length >> SHADOW_SCALE_LOG2, in __asan_init() 253 if (*(char *)MEM2SHADOW(ptr) == FREED_POISON_VAL) { in __asan_free() 298 DUMP("poison %d bytes at %p: %p - %p\n", size, ptr, MEM2SHADOW(ptr), in __asan_poison() 299 MEM2SHADOW(end)); in __asan_poison() 301 *(char *)MEM2SHADOW(ptr) = (offset == 0) ? poison_val : offset; in __asan_poison() 305 memset(MEM2SHADOW(ptr), poison_val, len); in __asan_poison() 311 DUMP("unpoison %d bytes at %p: %p - %p\n", size, ptr, MEM2SHADOW(ptr), in __asan_unpoison() [all …]
|