Searched refs:tagged_ptr (Results 1 - 2 of 2) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp174 static bool PointerAndMemoryTagsMatch(void *tagged_ptr) { argument
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) { argument
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);
273 AllocationSize(const void *tagged_ptr) argument
[all...]
H A Dhwasan.h60 static inline void *UntagPtr(const void *tagged_ptr) { argument
62 UntagAddr(reinterpret_cast<uptr>(tagged_ptr)));

Completed in 102 milliseconds