A buffer overflow happens when input exceeds the capacity of a program’s temporary storage area, or buffer, and overwrites adjacent memory. section 12.3.2
A form with a small name box
Imagine a name box that fits 10 letters. A 20-letter name spills into the next box, possibly overwriting other information. Excess input can similarly spill from a computer buffer into adjacent memory. section 12.3.2
An attacker can deliberately send too much data to corrupt important variables, change a program’s execution, or overwrite memory addresses. The program may crash, bypass protections, or allow privilege escalation. Validating input size helps prevent the overflow. section 12.3.2


