Prevent a buffer overrun error when attempting to parse a corrupt ELF file.
authorNick Clifton <nickc@redhat.com>
Thu, 28 Feb 2019 14:30:20 +0000 (14:30 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 28 Feb 2019 14:30:20 +0000 (14:30 +0000)
commiteed5def8d0b7b64c3592be75a9b22bb4ce1a78f4
tree53dc972a14e15ae73f4f9379ed117b8454f30c3b
parent9c4c331816b14d7020a8a15eed9dac5e5babdb0e
Prevent a buffer overrun error when attempting to parse a corrupt ELF file.

PR 24273
* elf.c (bfd_elf_string_from_elf_section): Check for a string
section that is not NUL terminated.
bfd/ChangeLog
bfd/elf.c