asan: heap buffer overflow in _bfd_mips_elf_section_from_shdr
authorAlan Modra <amodra@gmail.com>
Fri, 3 Jun 2022 13:17:50 +0000 (22:47 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 3 Jun 2022 14:02:39 +0000 (23:32 +0930)
commit3dc8d5eadaecc37722ec6979acf320cf0b969be8
treecddcc6d1f94276c029174e1b23e2a43291d420bb
parent7e6ba6a2a56e6195da36329bdeb1654e20aad198
asan: heap buffer overflow in _bfd_mips_elf_section_from_shdr

* elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Sanity check
intopt.size and remaining bytes in section for reginfo.
bfd/elfxx-mips.c