Don't exceed reloc array bounds
authorAlan Modra <amodra@gmail.com>
Sat, 17 Mar 2018 07:19:12 +0000 (17:49 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Mar 2018 11:12:17 +0000 (21:42 +1030)
commit675e28092f9d92c56c38d40d13ad5b766bdede05
tree50e41146bc1489f10fc2e676b24beba579bc3fe3
parentdca9fbc845f297db70dcb2202624b1497df5593c
Don't exceed reloc array bounds

* elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
without first checking array bounds.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c