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/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"addr": "<addr>"
},
"name": "pwndbg_malloc_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| addr | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |