Fixes another couple of memory errors reading corrupt binaries. This time
authorNick Clifton <nickc@redhat.com>
Tue, 28 Oct 2014 15:47:13 +0000 (15:47 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 28 Oct 2014 15:47:13 +0000 (15:47 +0000)
commitacafeb6056bec47d7211cf462a7c211a8c95cf42
tree9511409de4c91858f06e56e4e036920fb38b743a
parentcc8536de0fb8f40587cf99dad9460237ce9af7a7
Fixes another couple of memory errors reading corrupt binaries.  This time
detected by the address sanitizer.

PR binutils/17512
* elf.c (bfd_section_from_shdr): Allocate and free the recursion
detection table on a per-bfd basis.
* peXXigen.c (pe_print_edata): Handle binaries with a truncated
export table.
bfd/ChangeLog
bfd/elf.c
bfd/peXXigen.c