[PECOFF] Fix unsafe memory access.