]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf.c
Fix address violation problems when parsing corrupt ELF binaries.
authorNick Clifton <nickc@redhat.com>
Tue, 8 Aug 2017 12:20:02 +0000 (13:20 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 8 Aug 2017 12:20:02 +0000 (13:20 +0100)
commit24d3e51bf0612c6cf5e9a824b982e7ed38e741c8
tree41211d49485296da41b24791dc5f4caba61f734f
parent1fea592a7dc4c6639ad21321a2cf7b1f0bb55592
Fix address violation problems when parsing corrupt ELF binaries.

PR 21916
* elf-attrs.c (_bfd_elf_parse_attributes): Complain about very
small section lengths.
* elf.c (_bfd_elf_setup_sections): Skip empty entries in the group
table.
(elfcore_grok_freebsd_prstatus): Add checks to make sure that
there is enough data present in the note.
bfd/ChangeLog
bfd/elf-attrs.c
bfd/elf.c