pwndbg_malloc_chunk
Display malloc chunk header fields and freed chunk fd/bk pointers for heap analysis.
Instructions
Display detailed information about a specific malloc chunk.
pwndbg command: malloc_chunk Source: pwndbg/commands/ptmalloc2.py Category: GLibc ptmalloc2 Heap
Shows the chunk header fields (prev_size, size, flags) and for freed chunks, the fd/bk pointers.
Args: session_id: The UUID of the session. addr: Address of the malloc chunk.
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/ptmalloc2/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| addr | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |