Fix buffer overrun when parsing an ELF attribute string that is not NUL terminated.
authorNick Clifton <nickc@redhat.com>
Fri, 1 Sep 2017 08:57:44 +0000 (09:57 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 1 Sep 2017 08:57:44 +0000 (09:57 +0100)
commit2a143b99fc4a5094a9cf128f3184d8e6818c8229
treec455ccc93d2be39f8cf67c440e815b6efcfa1e7f
parent5c811d30d12b6f7c6c6f4ce6d03408d987154548
Fix buffer overrun when parsing an ELF attribute string that is not NUL terminated.

PR 22058
* elf-attrs.c (_bfd_elf_parse_attributes): Ensure that the
attribute buffer is NUL terminated.
bfd/ChangeLog
bfd/elf-attrs.c