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