_bfd_elf_slurp_secondary_reloc_section sanity check
authorAlan Modra <amodra@gmail.com>
Wed, 7 Dec 2022 03:19:49 +0000 (13:49 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 7 Dec 2022 03:51:09 +0000 (14:21 +1030)
commit285b1d3324954a1e56db6719f12988714a13b22d
treea93d4bfb507762798ec05743322b241970e871f3
parent16fce1bddb03d493fdc17b2d33461f77f3b58499
_bfd_elf_slurp_secondary_reloc_section sanity check

* elf.c (_bfd_elf_slurp_secondary_reloc_section): Sanity check
section header against file size.  Avoid overflow in
reloc_count.
bfd/elf.c