Lab
Memory Corruption Playground
A playful, local-only memory map simulator that teaches buffer overflows, use-after-free, and double free.
Local-only simulation
Everything runs in your browser. No server calls, no uploads, and no tracking.
Builder notes
This lab is intentionally practical: run the guided path once, then flip to free play and observe exactly how each action mutates memory state.
- Start with story mode so each bug class is introduced step-by-step.
- Use free play to compare overflow, UAF, and double-free side effects.
- Enable advanced mode to reason about return-address corruption.
Learning resources
These are background references; this lab is a visual simulator, not a real debugger.
Memory map
Each cell is one byte. Stack is short-lived. Heap is long-lived.
Danger: Low
Stack
Heap
Corruption
Boundary
Story mode
Five guided steps. Use Next/Back to replay the scenarios.
Step 1 of 5
Safe write: store 12 bytes inside a 16-byte buffer.
Try this: click a few bytes inside the highlighted block.
Actions
These buttons trigger the simulations. Enable Free Play to use them anytime.