Fix another memory access error in readelf when parsing a corrupt binary.
[external/binutils.git] / binutils / ChangeLog
1 2017-02-20  Nick Clifton  <nickc@redhat.com>
2
3         PR binutils/21156
4         * dwarf.c (cu_tu_indexes_read): Move into...
5         (load_cu_tu_indexes): ... here.  Change the variable into
6         tri-state.  Change the function into boolean, returning
7         false if the indicies could not be loaded.
8         (find_cu_tu_set): Return NULL if the indicies could not be
9         loaded.
10
11 2017-02-17  Nick Clifton  <nickc@redhat.com>
12
13         PR binutils/21156
14         * readelf.c (find_section_in_set): Test for invalid section
15         indicies.
16
17 2017-02-17  Nick Clifton  <nickc@redhat.com>
18
19         * readelf.c (get_section_type_name): Add decoding of GNU section
20         types.
21
22 2017-02-15  Nick Clifton  <nickc@redhat.com>
23
24         * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
25         Maintainers section.
26
27 2017-02-14  Nick Clifton  <nickc@redhat.com>
28
29         PR binutils/21159
30         * readelf.c (dump_section_as_strings): Reset the start address if
31         no decompression is perfromed.
32         (dump_section_as_bytes): Likewise.
33
34 2017-02-14  Nick Clifton  <nickc@redhat.com>
35
36         PR binutils/21158
37         * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
38         empty symbol name.
39
40 2017-02-14  Nick Clifton  <nickc@redhat.com>
41
42         PR binutils/21157
43         * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
44         pairs.
45         (parse_number): Exit early if passed an empty string.
46
47 2017-02-14  Nick Clifton  <nickc@redhat.com>
48
49         PR binutils/21155
50         * readelf.c (IN_RANGE): New macro.  Tests for an address + offset
51         being within a given range.
52         (target_specific_reloc_handling): Use macro to test for underflow
53         as well as overflow of reloc offset.
54
55 2017-02-13  Nick Clifton  <nickc@redhat.com>
56
57         PR binutils/21150
58         * nm.c (file_symbol): Add test of string length before testing
59         string characters.
60
61 2017-02-13  Nick Clifton  <nickc@redhat.com>
62
63         PR binutils/21135
64         * readelf.c (dump_section_as_bytes): Handle the case where
65         uncompress_section_contents returns false.
66         (dump_section_as_bytes, load_specific_debug_section): Likewise.
67
68 2017-02-13  Nick Clifton  <nickc@redhat.com>
69
70         PR binutils/21149
71         * readelf.c (get_compression_header): Add size parameter.  Check
72         size against sizeof compression header before attempting to
73         extract the header.
74         (process_section_headers): Pass size to get_compression_header.
75         (dump_section_as_strings): Likewise.
76         (dump_section_as_bytes): Likewise.
77         (load_specific_debug_section): Likewise.
78
79 2017-02-13  Nick Clifton  <nickc@redhat.com>
80
81         PR binutils/21148
82         * readelf.c (process_version_sections): Include size of auxillary
83         version information when checking for buffer overflow.
84
85 2017-02-13  Nick Clifton  <nickc@redhat.com>
86
87         PR binutils/21147
88         * readelf.c (process_section_contents): Fix off by one error
89         reporting un-dumped sections.
90
91 2017-02-13  Nick Clifton  <nickc@redhat.com>
92
93         PR binutils/21139
94         * readelf.c (target_specific_reloc_handling): Add num_syms
95         parameter.  Check for symbol table overflow before accessing
96         symbol value.  If reloc pointer is NULL, discard all saved state.
97         (apply_relocations): Pass num_syms to target_specific_reloc_handling.
98         Call target_specific_reloc_handling with a NULL reloc pointer
99         after processing all of the relocs.
100
101 2017-02-13  Nick Clifton  <nickc@redhat.com>
102
103         PR binutils/21137
104         * readelf.c (target_specific_reloc_handling): Add end parameter.
105         Check for buffer overflow before writing relocated values.
106         (apply_relocations): Pass end to target_specific_reloc_handling.
107
108 2017-01-27  Dilyan Palauzov  <dilyan.palauzov@aegee.org>
109             Nick Clifton  <nickc@redhat.com>
110
111         PR 20343
112         * doc/binutils.texi (ar): Extend documentation of the --plugin
113         option.  Include a description of where the plugins should be
114         located.
115         (nm): Likewise.
116
117 2017-01-23  Nick Clifton  <nickc@redhat.com>
118
119         * MAINTAINERS: Add Bernd to Past Maintainers section.
120         (SCORE): Remove Mei Ligang as maintainer.  Add to Past Maintainers
121         section.
122
123 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
124
125         * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
126
127 2017-01-20  Andrew Burgess  <andrew.burgess@embecosm.com>
128
129         * objdump.c (dump_section_header): Extract max section name length
130         from data parameter, use this when formatting output.
131         (find_longest_section_name): New function.
132         (dump_headers): Calculate longest section name when in wide mode,
133         reformat to unify printing of header line.
134
135 2017-01-18  Bernhard Rosenkranzer  <bero@lindev.ch>
136
137         PR 21059
138         * arlex.l: Support processing with flex 2.6.3.
139         * deflex.l: Likewise.
140
141 2017-01-17  Dmitry Timoshkov  <dmitry@baikal.ru>
142
143         * resbin.c: Optional dialog control data immediately follows
144         the control description without alignment.
145         * testsuite/binutils-all/windres/controldata.rc: New test.
146         source.
147         * testsuite/binutils-all/windres/controldata.rsd: New test.
148
149 2017-01-12  Nick Clifton  <nickc@redhat.com>
150
151         PR binutils/20876
152         * NEWS: Mention the new feature.
153         * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
154         New proc to test the location of separate debug info files using
155         the build-id method.
156
157 2017-01-10  Nick Clifton  <nickc@redhat.com>
158
159         PR 21034
160         * stabs.c (parse_stab_members): Fix thinko checking for g++
161         version 1 stabs information.
162
163 2017-01-09  Nick Clifton  <nickc@redhat.com>
164
165         * objdump.c (display_file): Add new parameter 'last_file'.  If
166         last_file is true, do not call bfd_close at the end of the
167         function.
168         (main): Set the value of the last_file parameter when calling
169         display_file.
170
171 2017-01-09  Alan Modra  <amodra@gmail.com>
172
173         * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
174         comment.
175
176 2017-01-06  Nick Clifton  <nickc@redhat.com>
177
178         * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
179
180 2017-01-04  Dilan Palauzov  <dilyan.palauzov@aegee.org>
181
182         PR 20958
183         * syslex.l (option): Add noyywrap
184         (yywrap): Delete.
185
186 2017-01-02  Alan Modra  <amodra@gmail.com>
187
188         Update year range in copyright notice of all files.
189
190 For older changes see ChangeLog-2016
191 \f
192 Copyright (C) 2017 Free Software Foundation, Inc.
193
194 Copying and distribution of this file, with or without modification,
195 are permitted in any medium without royalty provided the copyright
196 notice and this notice are preserved.
197
198 Local Variables:
199 mode: change-log
200 left-margin: 8
201 fill-column: 74
202 version-control: never
203 End: