diff options
author | Alan Modra <amodra@gmail.com> | 2014-11-07 09:37:39 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-11-07 13:19:15 +1030 |
commit | 405724050266e30fcc8cbcee416cde41862e8e8f (patch) | |
tree | f35a8d0b9758bbae7c5b50431042e07246802ae5 /bfd/archive.c | |
parent | 2dd2cd1c92d09ad96b643d2574d0dc6cd7e4841a (diff) | |
download | gdb-405724050266e30fcc8cbcee416cde41862e8e8f.zip gdb-405724050266e30fcc8cbcee416cde41862e8e8f.tar.gz gdb-405724050266e30fcc8cbcee416cde41862e8e8f.tar.bz2 |
Revert bfd_get_size checks
* archive.c (_bfd_slurp_extended_name_table): Revert bfd_get_size check.
* coffcode.h (coff_set_alignment_hook): Likewise.
(coff_slurp_line_table): Likewise.
* coffgen.c (coff_get_normalized_symtab): Likewise.
(_bfd_coff_get_external_symbols): Likewise.
* elf.c (bfd_elf_get_str_section): Likewise.
* tekhex.c (first_phase): Likewise.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r-- | bfd/archive.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bfd/archive.c b/bfd/archive.c index b905213..9e94745 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -1293,9 +1293,6 @@ _bfd_slurp_extended_name_table (bfd *abfd) amt = namedata->parsed_size; if (amt + 1 == 0) goto byebye; - /* PR binutils/17533: A corrupt archive can contain an invalid size. */ - if (amt > (bfd_size_type) bfd_get_size (abfd)) - goto byebye; bfd_ardata (abfd)->extended_names_size = amt; bfd_ardata (abfd)->extended_names = (char *) bfd_zalloc (abfd, amt + 1); |