Another fix for an objdump crash when parsing a corrupt binary.
[external/binutils.git] / bfd / ChangeLog
1 2015-01-06  Nick Clifton  <nickc@redhat.com>
2
3         PR binutils/17512
4         * mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the
5         string table.
6
7         * reloc.c (bfd_get_reloc_size): Handle a reloc size of -1.
8         (bfd_perform_relocation): Include the size of the reloc in the
9         test for an out of range relocation.
10         (bfd_generic_get_relocated_section_contents): Remove reloc range
11         test.
12
13         * coff-i860.c (CALC_ADDEND): Always set an addend value.
14         * tekhex.c (getvalue): Add an end pointer parameter.  Use it to
15         avoid reading off the end of the buffer.
16         (getsym): Likewise.
17         (first_phase): Likewise.
18         (pass_over): Pass an end pointer to the invoked function.
19
20 2015-01-05  H.J. Lu  <hongjiu.lu@intel.com>
21
22         PR binutils/17512
23         * elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt
24         input.
25         * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
26
27 2015-01-05  Nick Clifton  <nickc@redhat.com>
28
29         PR binutils/17512
30         * archive.c (do_slurp_bsd_armap): Make sure that the parsed sized
31         is at least big enough for the header to be read.
32         * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs.
33         * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks.
34         (bfd_mach_o_read_command): Prevetn duplicate error messages about
35         unrecognized commands.
36         * syms.c (_bfd_stab_section_find_nearest_line): Add range checks
37         when indexing into the string table.
38
39 2015-01-01  Alan Modra  <amodra@gmail.com>
40
41         Update year range in copyright notice of all files.
42
43 For older changes see ChangeLog-2014
44 \f
45 Copyright (C) 2015 Free Software Foundation, Inc.
46
47 Copying and distribution of this file, with or without modification,
48 are permitted in any medium without royalty provided the copyright
49 notice and this notice are preserved.
50
51 Local Variables:
52 mode: change-log
53 left-margin: 8
54 fill-column: 74
55 version-control: never
56 End: