Fix memory access violations triggered by running dlltool on corrupt binaries.
[external/binutils.git] / binutils / ChangeLog
1 2015-01-27  Nick Clifton  <nickc@redhat.com>
2
3         PR binutils/17512
4         * dlltool.c (identify_search_archive): If the last archive was the
5         same as the current archive, terminate the loop.
6
7 2015-01-23  Nick Clifton  <nickc@redhat.com>
8
9         * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
10         by recent delta, when compiling on for a 32-bit host.
11
12 2015-01-21  Nick Clifton  <nickc@redhat.com>
13
14         PR binutils/17512
15         * addr2line.c (main): Call bfd_set_error_program_name.
16         * ar.c (main): Likewise.
17         * coffdump.c (main): Likewise.
18         * cxxfilt.c (main): Likewise.
19         * dlltool.c (main): Likewise.
20         * nlmconv.c (main): Likewise.
21         * nm.c (main): Likewise.
22         * objdump.c (main): Likewise.
23         * size.c (main): Likewise.
24         * srconv.c (main): Likewise.
25         * strings.c (main): Likewise.
26         * sysdump.c (main): Likewise.
27         * windmc.c (main): Likewise.
28         * windres.c (main): Likewise.
29         * objcopy.c (main): Likewise.
30         (copy_relocations_in_section): Check for relocs without associated
31         symbol pointers.
32
33 2015-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34
35         * MAINTAINERS: Add self to ARM maintainers list.
36
37 2015-01-21  Nick Clifton  <nickc@redhat.com>
38
39         PR binutils/17512
40         * coffgrok.c (do_type): Check that computed ref exists.
41         (doit): Add range checks when computing section for scope.
42
43 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
44
45         * dwarf.c (process_debug_info): Properly check abbrev size.
46
47 2015-01-12  Nick Clifton  <nickc@redhat.com>
48
49         PR binutils/17531
50         * dwarf.c (process_debug_info): Check for abbrev_base being larger
51         than the section size.
52         (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
53         arrays.
54         (xcalloc2): New function.  Like xcalloc, but checks for overflow.
55         (display_debug_addr): Use xcalloc to allocate the debug_addr_info
56         array.  Check for an address_base that is too large.
57
58         * dwarf.h (xcalloc2): Prototype.
59
60 2015-01-12  Alan Modra  <amodra@gmail.com>
61
62         * prdbg.c (print_debugging_info): Don't use void* for function
63         pointer param.
64         * budbg.h (print_debugging_info): Update prototype.
65
66 2015-01-08  Nick Clifton  <nickc@redhat.com>
67
68         PR binutils/17512
69         * ojcopy.c (copy_object): Free the symbol table if no symbols
70         could be loaded.
71         (copy_file): Use bfd_close_all_done to close files that could not
72         be copied.
73
74         * sysdump.c (getINT): Fail if reading off the end of the buffer.
75         Replace call to abort with a call to fatal.
76         (getCHARS): Prevetn reading off the end of the buffer.
77
78         * nlmconv.c (i386_mangle_relocs): Skip relocs without an
79         associated symbol.
80         (powerpc_mangle_relocs): Skip unrecognised relocs.  Check address
81         range before applying a reloc.
82
83 2015-01-07  Nick Clifton  <nickc@redhat.com>
84
85         PR binutils/17512
86         * dlltool.c (scan_obj_file): Break loop if the last archive
87         displayed matches the current archive.
88
89         * objdump.c (display_any_bfd): Add a depth limit to nested archive
90         display in order to avoid infinite loops.
91         * srconv.c: Replace calls to abort with calls to fatal with an
92         error message.
93
94 2015-01-06  Nick Clifton  <nickc@redhat.com>
95
96         PR binutils/17512
97         * coffdump.c (dump_coff_section): Check for a symbol being
98         available before printing its name.
99         (main): Check the return value from coff_grok.
100         * coffgrok.c: Reformat and tidy.
101         Add range checks to most functions.
102         (coff_grok): Return NULL if the input bfd is not in a COFF
103         format.
104         * coffgrok.h: Reformat and tidy.
105         (struct coff_section): Change the nrelocs field to unsigned.
106         * srconv.c (main): Check the return value from coff_grok.
107
108 2015-01-05  Nick Clifton  <nickc@redhat.com>
109
110         PR binutils/17512
111         * nm.c (print_symbol): Add 'is_synthetic' parameter.  Use it to
112         help initialize the info.elfinfo field.
113         (print_size_symbols): Add 'synth_count' parameter.  Use it to set
114         the is_synthetic parameter when calling print_symbol.
115         (print_symbols): Likewise.
116         (display_rel_file): Pass synth_count to printing function.
117         (display_archive): Break loop if the last archive displayed
118         matches the current archive.
119         * size.c (display_archive): Likewise.
120
121 2015-01-05  Nick Clifton  <nickc@redhat.com>
122
123         PR binutils/17531
124         * dwarf.c (alloc_num_debug_info_entries): New variable.
125         (process_debug_info): Set it.  Use it to avoid displaying
126         attributes for which there is no info.
127         (display_debug_abbrev): Check that the debug_info_entry index is
128         valid before using it.
129         (display_loc_list_dwo): Likewise.
130         (process_cu_tu_index): Add range check for an overlarge dw_sect
131         value.
132         (free_debug_memory): Reset alloc_num_debug_info_entries.
133         * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
134         be indentified.
135         (dynamic_section_mips_val): Warn if the timestamp is invalid.
136         (print_mips_got_entry): Add a data_end parameter.  Warn if a read
137         would go beyond the end of the data, and return an error value.
138         (process_mips_specific): Do not read options from beyond the end
139         of the section.
140         Correct code to display optional data at the end of an option.
141         Warn if there are too many GOT symbols.
142         Update calls to print_mips_got_entry, and handle error returns.
143
144 2015-01-05  Daniel Klauer  <daniel.c.klauer@web.de>
145
146         PR binutils/17489
147         * doc/binutils.texi (dlltool): Correct description of --kill-at
148         option.
149
150 2015-01-01  Alan Modra  <amodra@gmail.com>
151
152         * version.c (print_version): Just print current year.
153
154 2015-01-01  Alan Modra  <amodra@gmail.com>
155
156         Update year range in copyright notice of all files.
157
158 For older changes see ChangeLog-2014
159 \f
160 Copyright (C) 2015 Free Software Foundation, Inc.
161
162 Copying and distribution of this file, with or without modification,
163 are permitted in any medium without royalty provided the copyright
164 notice and this notice are preserved.
165
166 Local Variables:
167 mode: change-log
168 left-margin: 8
169 fill-column: 74
170 version-control: never
171 End: