Exploiting Type Confusion in Flash
googleprojectzero.blogspot.com
googleprojectzero.blogspot.com
This somewhat reminds me of the quirk of old FORTRAN implementations which could cause the values of constants to be changed accidentally.
The point being that this isn't a Flash/Microsoft/pick your target problem, but it's an industry wide, software engineering problem.