struct AllocatorState

Defined at line 112 of file ../../third_party/scudo/gwp_asan/common.h

This holds the state that's shared between the GWP-ASan allocator and the

crash handler. This, in conjunction with the Metadata array, forms the entire

set of information required for understanding a GWP-ASan crash.

Public Members

AllocatorVersionMagic VersionMagic
size_t MaxSimultaneousAllocations
uintptr_t GuardedPagePool
uintptr_t GuardedPagePoolEnd
size_t PageSize
Error FailureType
uintptr_t FailureAddress

Public Methods

void AllocatorState ()

Defined at line 113 of file ../../third_party/scudo/gwp_asan/common.h

bool pointerIsMine (const void * Ptr)

Returns whether the provided pointer is a current sampled allocation that

is owned by this pool.

Defined at line 118 of file ../../third_party/scudo/gwp_asan/common.h

uintptr_t slotToAddr (size_t N)

Returns the address of the N-th guarded slot.

size_t maximumAllocationSize ()

Returns the largest allocation that is supported by this pool.

size_t getNearestSlot (uintptr_t Ptr)

Gets the nearest slot to the provided address.

bool isGuardPage (uintptr_t Ptr)

Returns whether the provided pointer is a guard page or not. The pointer

must be within memory owned by this pool, else the result is undefined.

uintptr_t internallyDetectedErrorFaultAddress ()

Returns the address that's used by __gwp_asan_get_internal_crash_address()

and GPA::raiseInternallyDetectedError() to communicate that the SEGV in

question comes from an internally-detected error.