#include "gwp_asan/common.h"
#include "gwp_asan/stack_trace_compressor.h"
#include <assert.h>
AllocationMetadata;
Error;
namespace gwp_asan {
const char *ErrorToString(const Error &E) { … }
constexpr size_t AllocationMetadata::kStackFrameStorageBytes;
constexpr size_t AllocationMetadata::kMaxTraceLengthToCollect;
void AllocationMetadata::RecordAllocation(uintptr_t AllocAddr,
size_t AllocSize) { … }
void AllocationMetadata::RecordDeallocation() { … }
void AllocationMetadata::CallSiteInfo::RecordBacktrace(
options::Backtrace_t Backtrace) { … }
size_t AllocatorState::maximumAllocationSize() const { … }
uintptr_t AllocatorState::slotToAddr(size_t N) const { … }
bool AllocatorState::isGuardPage(uintptr_t Ptr) const { … }
static size_t addrToSlot(const AllocatorState *State, uintptr_t Ptr) { … }
size_t AllocatorState::getNearestSlot(uintptr_t Ptr) const { … }
uintptr_t AllocatorState::internallyDetectedErrorFaultAddress() const { … }
}