# Writing a Memory Allocator from Scratch: glibc Heap Internals and Security Hardening
15 min read
Every call to malloc hides a small miracle of systems engineering. In the time it takes your program to allocate 16 bytes, glibc’s heap allocator has consulted a multi-tiered bin system, potentially…