[PATCH] opcodes: don't assume ELF in riscv, csky, rl78, mep disassemblers
Alan Modra
amodra@gmail.com
Sat Apr 30 06:44:57 GMT 2022
On Fri, Apr 29, 2022 at 09:17:58PM -0700, Thomas Hebb via Binutils wrote:
> Currently, the get_disassembler() implementations for riscv, csky, and
> rl78--and mep_print_insn() for mep--access ELF variants of union fields
> without first checking that the bfd actually represents an ELF. This
> causes undefined behavior and crashes when disassembling non-ELF files
> (the "binary" BFD, for example).
Thanks, committed.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list