Fix phdr null deref in the elf parser
This commit is contained in:
parent
c77aba1c63
commit
2ec4b56e40
1 changed files with 1 additions and 1 deletions
|
|
@ -1991,7 +1991,7 @@ int Elf_(r_bin_elf_get_bits)(ELFOBJ *bin) {
|
|||
return 16;
|
||||
}
|
||||
/* Hack for Ps2 */
|
||||
if (bin->ehdr.e_machine == EM_MIPS) {
|
||||
if (bin->phdr && bin->ehdr.e_machine == EM_MIPS) {
|
||||
const ut32 mipsType = bin->ehdr.e_flags & EF_MIPS_ARCH;
|
||||
if (bin->ehdr.e_type == ET_EXEC) {
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue