projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent address violation problem when disassembling corrupt aarch64 binary.
[deliverable/binutils-gdb.git]
/
opcodes
/
ip2k-desc.c
diff --git
a/opcodes/ip2k-desc.c
b/opcodes/ip2k-desc.c
index 1f45fa0b4624f3d241319097f9367948803eca16..75f236384eae61db267aace148e0f87ea04dd98c 100644
(file)
--- a/
opcodes/ip2k-desc.c
+++ b/
opcodes/ip2k-desc.c
@@
-862,7
+862,7
@@
lookup_mach_via_bfd_name (const CGEN_MACH *table, const char *name)
return table;
++table;
}
return table;
++table;
}
-
abort ()
;
+
return NULL
;
}
/* Subroutine of ip2k_cgen_cpu_open to build the hardware table. */
}
/* Subroutine of ip2k_cgen_cpu_open to build the hardware table. */
@@
-1076,7
+1076,8
@@
ip2k_cgen_cpu_open (enum cgen_cpu_open_arg arg_type, ...)
const CGEN_MACH *mach =
lookup_mach_via_bfd_name (ip2k_cgen_mach_table, name);
const CGEN_MACH *mach =
lookup_mach_via_bfd_name (ip2k_cgen_mach_table, name);
- machs |= 1 << mach->num;
+ if (mach != NULL)
+ machs |= 1 << mach->num;
break;
}
case CGEN_CPU_OPEN_ENDIAN :
break;
}
case CGEN_CPU_OPEN_ENDIAN :
This page took
0.02364 seconds
and
4
git commands to generate.