On occasion, programmers will write code which use unbounded arrays. It can be possible to insert assembly code past the end of the array and cause the program to execute the code.
There really is no way to protect yourself from this type of attack other than to read through the source yourself or to pay close attention to advisories related to this sort of attack.
