Fix memory access problems discovered when running some binary tools on corrupt files.
authorNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 10:57:09 +0000 (11:57 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 10:57:09 +0000 (11:57 +0100)
commit4b0e8a5f80441fad8eddaf68e7af70bd6991aa37
treeff5f7482114d200ce52b6094c721df98dc2478ad
parent64140f86ab732f9ed87beccab07c32befaf9ca52
Fix memory access problems discovered when running some binary tools on corrupt files.

PR binutils/18758
* elf.c (_bfd_elf_setup_sections): Add checks for corrupt section
group information.
* peicode.h (pe_ILF_make_a_section): Ensure alignment of the
used_by_bfd pointer.
(pe_ILF_build_a_bfd): Ensure alignment of vars.data pointer.
bfd/ChangeLog
bfd/elf.c
bfd/peicode.h