PR28165, buffer overflow in elf32-rx.c:rx_info_to_howto_rela
authorAlan Modra <amodra@gmail.com>
Thu, 5 Aug 2021 07:49:08 +0000 (17:19 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 5 Aug 2021 11:17:09 +0000 (20:47 +0930)
commit4939c49d213c760406f2ad0178ddb3461b618eb9
treee57cbedd06a926a9d6e2c198c59c5bd2de92a16f
parent5570ab7f44dffa808ee6d90c9a8dbf50ae80621b
PR28165, buffer overflow in elf32-rx.c:rx_info_to_howto_rela

PR 28165
* elf32-rx.c (rx_elf_howto_table): Add missing empty entries.
(rx_info_to_howto_rela): Assert rx_elf_howto_table is correct size.
Use actual size when sanity checking r_type.
bfd/elf32-rx.c