Fix crash in ELF parser