Skip to content

0x1000 · Area

Vulnerability Classes

Memory-safety bugs fall into a small number of recurring classes. Each guide here shows the vulnerable pattern in a few lines of C, explains why it corrupts memory, and then shows the fix, the compiler warning or sanitizer that catches it, and the mitigation that limits the damage.

Guides in this area

  1. Why writing past a stack buffer is dangerous, the C patterns that cause it, how compilers and sanitizers catch it, and the fixes and mitigations that contain it.

  2. How heap memory bugs corrupt allocator metadata and object state, why use-after-free is so dangerous, and the allocator hardening, sanitizers and ownership rules that stop them.

  3. How integer overflow, truncation and signedness errors turn into memory corruption, why user-controlled format strings are dangerous, and the checks and warnings that prevent both.

Other areas