When data overflows from a buffer onto the stack, and that data is code, then the system will execute it.