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