SWF sanity check patch by (Glyn Kennington <glyn dot kennington at ox dot compsoc...