Lines Matching refs:tagged_ptr
174 static bool PointerAndMemoryTagsMatch(void *tagged_ptr) {
175 CHECK(tagged_ptr);
176 uptr tagged_uptr = reinterpret_cast<uptr>(tagged_ptr);
178 MemToShadow(reinterpret_cast<uptr>(UntagPtr(tagged_ptr))));
182 static void HwasanDeallocate(StackTrace *stack, void *tagged_ptr) {
183 CHECK(tagged_ptr);
184 HWASAN_FREE_HOOK(tagged_ptr);
186 if (!PointerAndMemoryTagsMatch(tagged_ptr))
187 ReportInvalidFree(stack, reinterpret_cast<uptr>(tagged_ptr));
189 void *untagged_ptr = UntagPtr(tagged_ptr);
207 ReportTailOverwritten(stack, reinterpret_cast<uptr>(tagged_ptr),
228 ha->push({reinterpret_cast<uptr>(tagged_ptr), alloc_context_id,
273 static uptr AllocationSize(const void *tagged_ptr) {
274 const void *untagged_ptr = UntagPtr(tagged_ptr);