If IExternalizable.writeExternal is overridden with a value that is not a function, Flash assumes it is a function even though it is not one. This leads to execution of a ‘method’ outside of the ActionScript object’s ActionScript vtable, leading to memory corruption.