Fix a fancy crash in the ELF parser