asan: heap buffer overflow in _bfd_elf_parse_attributes
authorAlan Modra <amodra@gmail.com>
Wed, 2 Jun 2021 05:17:17 +0000 (14:47 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 2 Jun 2021 05:17:17 +0000 (14:47 +0930)
commit45342c7c91f4c0a737405468ce2999825cb11c9a
treee3c253964aefb603804c2e9c48dfe56384234c75
parent75bf2c9cf7dc7dad5e99f337a5d4f677e71dadc9
asan: heap buffer overflow in _bfd_elf_parse_attributes

* elf-attrs.c (_bfd_elf_parse_attributes): Break out of loop if
subsection length is too small to cover tag and length field.
bfd/ChangeLog
bfd/elf-attrs.c