how does the heap manage the size?
Beginner Hint
- check how
malloc_usable_sizebehaves. cross referencers (i.e., elixir bootlin) are recommended when reading the glibc source code. - furthermore, you can visualize the heap with
visual-heapcommand from gdb extension such as gef, pwndbg.