What Is a Buffer Overflow? Types and Prevention
A buffer overflow occurs when a program writes outside a buffer's permitted memory bounds. It can corrupt data or crash a process; some vulnerabilities can also allow unauthorised code execution. The result depends on the bug and environment. Preventing it requires correct sizes, safe interfaces and testing, with compiler and operating-system protections as additional layers.