Fix memory access violations exposed by running strip on fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Thu, 8 Jan 2015 15:39:49 +0000 (15:39 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 8 Jan 2015 15:39:49 +0000 (15:39 +0000)
commit063bb0250defafcc55544474a2961ecbc153882e
tree5ec4e53c3bbc11fc7ff8dce67ccfacaad5608767
parent848cde35d61874521ad6c88a50f983d5ee7d2307
Fix memory access violations exposed by running strip on fuzzed binaries.

PR binutils/17512
* coffcode.h (coff_slurp_symbol_table): Return false if we failed
to load the line table.
* elf.c (_bfd_elf_map_sections_to_segments): Enforce a minimum
maxpagesize of 1.
* peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if
the Data Directory Size is too large.

* objcopy.c (copy_object): Free the symbol table if no symbols
could be loaded.
(copy_file): Use bfd_close_all_done to close files that could not
be copied.
bfd/ChangeLog
bfd/coffcode.h
bfd/elf.c
bfd/peXXigen.c
binutils/ChangeLog
binutils/objcopy.c
This page took 0.025702 seconds and 4 git commands to generate.