PR binutils/22875: FRV/ELF: Prevent an out-of-bounds howto table access
authorMaciej W. Rozycki <macro@mips.com>
Wed, 4 Apr 2018 01:00:48 +0000 (02:00 +0100)
committerMaciej W. Rozycki <macro@mips.com>
Wed, 4 Apr 2018 01:00:48 +0000 (02:00 +0100)
commitf428698edfd845a21639f5145cba3772eb92abc2
tree309571e3073a0293cdc96107d6f1a68143be912f
parent7ed6f92aaffdcc0995b0247379fb8ea621854dce
PR binutils/22875: FRV/ELF: Prevent an out-of-bounds howto table access

Prevent an out-of-bounds `elf32_frv_howto_table' table access in
`frv_info_to_howto_rela' by using the size of the table rather than
R_FRV_max to determine the number of entries in the contiguous regular
FRV relocation range defined and described in the table.

bfd/
* elf32-frv.c (frv_info_to_howto_rela): Correct the range check
for `elf32_frv_howto_table' table access.
bfd/ChangeLog
bfd/elf32-frv.c
This page took 0.024368 seconds and 4 git commands to generate.