ptmalloc2 ¤
Functions:
-
read_chunk
–Read a chunk's metadata.
-
format_bin
– -
print_no_arena_found_error
– -
print_no_tcache_bins_found_error
– -
heap
–Iteratively print chunks on a heap, default to the current thread's
-
hi
– -
arena
–Print the contents of an arena, default to the current thread's arena.
-
arenas
–Lists this process's arenas.
-
tcache
–Print a thread's tcache contents, default to the current thread's
-
mp
–Print the mp_ struct's contents.
-
top_chunk
–Print relevant information about an arena's top chunk, default to the
-
malloc_chunk
–Print a malloc_chunk struct's contents.
-
bins
–Print the contents of all an arena's bins and a thread's tcache,
-
fastbins
–Print the contents of an arena's fastbins, default to the current
-
unsortedbin
–Print the contents of an arena's unsortedbin, default to the current
-
smallbins
–Print the contents of an arena's smallbins, default to the current
-
largebins
–Print the contents of an arena's largebins, default to the current
-
tcachebins
–Print the contents of a tcache, default to the current thread's tcache.
-
find_fake_fast
–Find candidate fake fast chunks overlapping the specified address.
-
vis_heap_chunks
–Visualize chunks on a heap, default to the current arena's active heap.
-
bin_ascii
– -
bin_labels_mapping
–Returns all potential bin labels for all potential addresses
-
try_free
– -
try_unlink
–
Attributes:
-
parser
– -
group
– -
VALID_CHARS
– -
try_free_parser
–
parser module-attribute
¤
parser = ArgumentParser(
description="Visualize chunks on a heap.\n\nDefault to the current arena's active heap."
)
try_free_parser module-attribute
¤
try_free_parser = ArgumentParser(
description="Check what would happen if free was called with given address."
)
format_bin ¤
format_bin(
bins: Bins, verbose: bool = False, offset: int | None = None
) -> list[str]
heap ¤
Iteratively print chunks on a heap, default to the current thread's active heap.
arena ¤
Print the contents of an arena, default to the current thread's arena.
tcache ¤
Print a thread's tcache contents, default to the current thread's tcache.
top_chunk ¤
Print relevant information about an arena's top chunk, default to the current thread's arena.
malloc_chunk ¤
malloc_chunk(
addr: int,
fake: bool = False,
verbose: bool = False,
simple: bool = False,
next: int = 0,
dump: bool = False,
) -> None
Print a malloc_chunk struct's contents.
bins ¤
Print the contents of all an arena's bins and a thread's tcache, default to the current thread's arena and tcache.
fastbins ¤
Print the contents of an arena's fastbins, default to the current thread's arena.
unsortedbin ¤
Print the contents of an arena's unsortedbin, default to the current thread's arena.
smallbins ¤
Print the contents of an arena's smallbins, default to the current thread's arena.
largebins ¤
Print the contents of an arena's largebins, default to the current thread's arena.
tcachebins ¤
Print the contents of a tcache, default to the current thread's tcache.
find_fake_fast ¤
find_fake_fast(
target_address: int,
max_candidate_size: int | None = None,
align: bool = False,
glibc_fastbin_bug: bool = False,
partial_overwrite: bool = False,
) -> None
Find candidate fake fast chunks overlapping the specified address.
vis_heap_chunks ¤
vis_heap_chunks(
addr: int | None = None,
count: int | None = None,
beyond_top: bool = False,
no_truncate: bool = False,
all_chunks: bool = False,
) -> None
Visualize chunks on a heap, default to the current arena's active heap.