'DieHard' wards off memory attacks