Fix potential illegal memory access by readelf when parsing a binary containing corru...
[external/binutils.git] / binutils / ChangeLog
1 2019-02-20  Nick Clifton  <nickc@redhat.com>
2
3         PR 24246
4         * readelf.c (print_stapsdt_note): Harden against corrupt notes.
5
6         PR 24244
7         * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
8         prevent walking off the end of the buffer.
9         (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
10         (unw_decode_x2): Likewise.
11         (unw_decode_x3): Likewise.
12         (unw_decode_x4): Likewise.
13         (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
14         (unw_decode_r3): Likewise.
15         (unw_decode_p7_p10): Likewise.
16         (unw_decode_b2): Likewise.
17         (unw_decode_b3_x4): Likewise.
18
19         PR 24243
20         * readelf.c (process_mips_specific): Check for an options section
21         that is too small to even contain a single option.
22
23         PR 24242
24         * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
25
26 2019-02-20  Alan Modra  <amodra@gmail.com>
27
28         PR 24132
29         PR 24138
30         * readelf.c (get_data): Avoid possibility of overflow when
31         checking for a read that may extend past end of file.
32         (process_program_headers): Likewise.
33
34 2019-02-20  Alan Modra  <amodra@gmail.com>
35
36         PR 24233
37         * objdump.c (dump_bfd_private_header): Print warning if
38         bfd_print_private_bfd_data returns false.
39
40 2019-02-12  Nick Clifton  <nickc@redhat.com>
41
42         PR 23440
43         * README-how-to-make-a-release: Use git clean to delete spurious
44         files from the local source repository.
45
46 2019-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
47
48         * size.c (berkeley_format): Delete.
49         (enum output_format): New enum.
50         (selected_output_format): New variable.
51         (usage): Update to mention GNU format.
52         (main): Update to extract options, and select format as needed.
53         Handle GNU format where needed.
54         (berkeley_sum): Renamed to...
55         (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
56         (berkeley_format): Renamed to...
57         (berkeley_or_gnu_format): ...this, and updated to handle both
58         formats.
59         (print_sizes): Handle GNU format.
60         * doc/binutils.texi (size): Document new GNU format.
61         * testsuite/binutils-all/size.exp: Add test of extended
62         functionality.
63         * NEWS: Mention new functionality.
64
65 2019-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
66
67         * doc/binutils.texi (size): Update example output for Berkeley
68         format output.
69
70 2019-02-07  Nick Clifton  <nickc@redhat.com>
71
72         * README-how-to-make-a-release: Add a note about updating the
73         obsolete targets in the bfd/config.bfd file.
74
75 2019-02-04  Nick Clifton  <nickc@redhat.com>
76
77         * README-how-to-make-a-release: Add more notes on making a release.
78
79 2019-01-25  Nick Clifton  <nickc@redhat.com>
80
81         PR 24131
82         * readelf.c (process_notes_at): Prevent an illegal memory access
83         when the note's namesize is zero.
84         (decode_tic6x_unwind_bytecode): Add code to handle the case where
85         no registers are specified in a frame pop instruction.
86
87 2019-01-25  Nick Clifton  <nickc@redhat.com>
88
89         * po/bg.po: Updated Bulgarian translation.
90
91 2019-01-23  Nick Clifton  <nickc@redhat.com>
92
93         * po/fr.po: Updated French translation.
94         * po/pt.po: Updated Portuguese translation.
95
96 2019-01-21  Nick Clifton  <nickc@redhat.com>
97
98         * po/uk.po: Updated Ukranian translation.
99
100 2019-01-19  Nick Clifton  <nickc@redhat.com>
101
102         * configure: Regenerate.
103         * binutils/po/binutils.pot.
104
105         * README-how-to-make-a-release: Update description on how to make
106         a branch.
107
108 2018-06-24  Nick Clifton  <nickc@redhat.com>
109
110         2.32 branch created.
111
112 2019-01-17  Nick Clifton  <nickc@redhat.com>
113
114         * objdump.c (disassemble_section): When disassembling from a
115         symbol only stop at the next symbol if the original symbol was not
116         a function symbol.  Otherwise continue disassembling until a new
117         function is reached.
118         * testsuite/binutils-all/objdump.exp: Add tests of extended
119         functionality.
120         * testsuite/binutils-all/disasm.s: New test source file.
121
122 2019-01-16  Kito Cheng  <kito@andestech.com>
123             Nelson Chu  <nelson@andestech.com>
124
125         * readelf.c (get_riscv_section_type_name): New function.
126         (get_section_type_name): Add handler for RISC-V.
127         (riscv_attr_tag_t): Declare.
128         (riscv_attr_tag): New.
129         (display_riscv_attribute): New function.
130         (process_attributes): Add handler for RISC-V.
131         * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
132         section.
133
134 2019-01-10  Nick Clifton  <nickc@redhat.com>
135
136         PR 23963
137         * objdump.c (sanitize_string): New function.  Removes control
138         characters from symbol names.
139         (dump_section_header): Use new function.
140         (objdump_print_symname): Likewise.
141         (objdump_print_addr_with_sym): Likewise.
142         (show_line): Likewise.
143         (disassemble_bytes): Likewise.
144         (disassemble_section): Likewise.
145         (load_specific_debug_section): Likewise.
146         (read_section_stabs): Likewise.
147         (print_section_stabs): Likewise.
148         (dump_section): Likewise.
149         (dump_reloc_set): Likewise.
150         (dump_relocs_in_section): Likewise.
151         (dump_bfd): Likewise.
152         (display_any_bfd): Likewise.
153
154 2019-01-09  Nick Clifton  <nickc@redhat.com>
155
156         PR 24049
157         * readelf.c (process_archive): Use arch.file_name in error
158         messages until the qualified name is available.
159
160 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
161
162         * configure: Regenerate.
163
164 2019-01-09  Alan Modra  <amodra@gmail.com>
165
166         * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
167         unconditionally to tests needing the option rather than via a
168         list of targets.
169
170 2019-01-08  Nick Clifton  <nickc@redhat.com>
171
172         PR 24044
173         * cxxfilt.c (hp_symbol_characters): Delete.
174         (main): Remove depcreated demangling styles.
175         * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
176         demangling opnames.
177         * testsuite/binutils-all/cxxfilt.exp: Use the
178         --no-strip-underscore option for targets that do prefix their
179         symbols with underscores.
180         Update tests to eliminate those that use gnu v2 encoding.
181
182 2019-01-08  Tamar Christina  <tamar.christina@arm.com>
183
184         PR 24065
185         * testsuite/binutils-all/copy-6.d: New test.
186         * testsuite/binutils-all/objcopy.exp: Use it.
187
188 2019-01-08  Alan Modra  <amodra@gmail.com>
189
190         * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
191         $srcdir/$subdir to source file name if it starts with "./".
192
193 2019-01-05  Yoshinori Sato <ysato@users.sourceforge.jp>
194
195         * readelf.c (get_machine_flags): Add RXv3 output.
196
197 2019-01-04  Nick Clifton  <nickc@redhat.com>
198
199         PR 24005
200         * objdump.c (load_specific_debug_section): Check for integer
201         overflow before attempting to allocate contents.
202
203 2019-01-04  Nick Clifton  <nickc@redhat.com>
204
205         PR 24001
206         * objcopy.c (copy_object): Free dhandle after writing out the
207         debug information.
208         * objdump.c (dump_bfd): Free dhandle after printing out the debug
209         information.
210
211
212 2019-01-01  Alan Modra  <amodra@gmail.com>
213
214         Update year range in copyright notice of all files.
215
216 For older changes see ChangeLog-2018
217 \f
218 Copyright (C) 2019 Free Software Foundation, Inc.
219
220 Copying and distribution of this file, with or without modification,
221 are permitted in any medium without royalty provided the copyright
222 notice and this notice are preserved.
223
224 Local Variables:
225 mode: change-log
226 left-margin: 8
227 fill-column: 74
228 version-control: never
229 End: