Well, let's say you have a buffer that is the according:
That is an example of how buffer overflow occurs, basically it is when you try to make the buffer hold that it's size.Code:char Buffer[5]; strcpy(Buffer, "More than 5 chars is a buffer overflow");