Example: Buffer Overflow
In C, it’s very hard to make string buffers grow as needed.
Many programmers allocate fixed-size string buffers.
What if the remote user sends too large a string? Did your program check?
The “string” can overwrite crucial portions of memory, and can inject new code.