Fixed segfault when malformed ELF