You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/pwndbg/aglib/heap/heap.py

33 lines
755 B
Python

from __future__ import annotations
class MemoryAllocator:
"""Heap abstraction layer."""
def containing(self, address: int) -> int:
"""Returns the address of the allocation which contains 'address'.
Arguments:
address: Address to look up.
Returns:
An integer.
"""
raise NotImplementedError()
def is_initialized(self) -> bool:
"""Returns whether the allocator is initialized or not.
Returns:
A boolean.
"""
raise NotImplementedError()
def libc_has_debug_syms(self) -> bool:
"""Returns whether the libc has debug symbols or not.
Returns:
A boolean.
"""
raise NotImplementedError()