Fix illegal memory access triggered by an attempt to disassemble a corrupt RISC-V...
authorNick Clifton <nickc@redhat.com>
Tue, 7 Sep 2021 08:44:17 +0000 (09:44 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 7 Sep 2021 08:44:17 +0000 (09:44 +0100)
commit3f1a2892e1fea343880b276474cb44db3abcaa9a
treee11dc9e68b1a50e11e3e2e8aad6e804764ee8dd0
parent5d2deb81fa143e592414fd987c2899c839eb433e
Fix illegal memory access triggered by an attempt to disassemble a corrupt RISC-V binary.

PR 28303
* elfxx-riscv.c (riscv_elf_add_sub_reloc): Add check for out of
range relocs.
bfd/ChangeLog
bfd/elfxx-riscv.c