std::core::sanitizer::asan

unpoison_memory_region

macro unpoison_memory_region(void* addr, usz size)
Marks a memory region ([addr, addr+size)) as addressable.

This memory must be previously allocated by your program. Accessing
addresses in this region is allowed until this region is poisoned again.
This function could unpoison a super-region of [addr, addr+size) due
to ASan alignment restrictions.

NOTE This function is not thread-safe because no two threads can
poison or unpoison memory in the same memory region simultaneously.

Parameters