~/talk

Understand Heap Memory layout with pwndbg

Talkat PyCon India 2020 · 2020-10-02..10-05· [security]
links:none on file
slides:none on file

Explains concrete heap internals by running a C program that calls malloc and free, using pwndbg inside GDB to display heap chunks and metadata; shows live commands like viewing tcache and unsorted bins, stepping to breakpoints and reading chunk headers. Demonstrates corrupting a size field to create overlapping allocations and observes pointer/size changes in memory, with the demo successfully reproducing the overlap and clarifying why allocator choices (tcache vs fastbin) change exploitation paths.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:09Dynamic memory allocation basics
  3. 12:24Heap memory layout overview
  4. 22:08Pwndbg memory inspection demo
  5. 30:50Q&A and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.