]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/ChangeLog
Re: asan: more readelf leaks
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
index 05c29397f8373a954d0be937489a19ddd0c5f211..5f8af9468040748412ee8b925cd1dc167637e661 100644 (file)
@@ -1,3 +1,83 @@
+2020-03-14  Alan Modra  <amodra@gmail.com>
+
+       * readelf.c (process_file): Clean ba_cache.
+
+2020-03-14  Alan Modra  <amodra@gmail.com>
+
+       * elfcomm.h (setup_archive): Update prototype.
+       * elfcomm.c (setup_archive): Add file_size parameter and sanity
+       check longnames_size.
+       (setup_nested_archive): Get file size and pass to setup_archive.
+       * elfedit.c (process_archive): Likewise.
+       * readelf.c (process_archive): Pass filedata->file_size to
+       setup_archive.
+
+2020-03-14  Alan Modra  <amodra@gmail.com>
+
+       * readelf.c (dump_section_as_strings): Free memory on error exit.
+       (dump_section_as_bytes, process_notes_at): Likewise.
+       (get_build_id): Free enote.
+
+2020-03-13  Kamil Rytarowski  <n54@gmx.com>
+
+       * readelf.c (get_netbsd_elfcore_note_type): Add support for
+       NT_NETBSDCORE_LWPSTATUS notes.
+
+2020-03-13  Alan Modra  <amodra@gmail.com>
+
+       * elfcomm.c (get_archive_member_name): Always return malloc'd
+       string or NULL.
+       * elfedit.c (process_archive): Tidy memory on all return paths.
+       * readelf.c (process_archive): Likewise.
+       (process_symbol_table): Likewise.
+       (ba_cache): New, replacing ..
+       (get_symbol_for_build_attribute): ..static vars here.  Free
+       strtab and symtab before loading new ones.  Reject symtab without
+       valid strtab in loop, breaking out of loop on valid symtab.
+       (process_file): Free ba_cache symtab and strtab here, resetting
+       ba_cache.
+
+2020-03-12  Alan Modra  <amodra@gmail.com>
+
+       * readelf.c (process_section_headers): Don't just set
+       filedata->section_headers NULL, free it first.  Similarly for
+       dynamic_symbols, dynamic_strings, dynamic_syminfo and
+       symtab_shndx_list.  Zero associated counts too.
+       (process_object): Free symtab_shndx_list.
+       (process_file): Free various allocated filedata tables.
+
+2020-03-11  Nick Clifton  <nickc@redhat.com>
+
+       PR 25611
+       PR 25614
+       * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
+       li_segment_size fields.
+       * dwarf.c (read_debug_line_header): Record the address size and
+       segment selector size values (if present) in the lineinfo
+       structure.
+       (display_formatted_table): Warn if the format count is empty but
+       the table itself is not empty.
+       Display the format count and entry count at the start of the table
+       dump.
+       (display_debug_lines_raw): Display the address size and segement
+       selector size fields, if present.
+       * testsuite/binutils-all/dw5.W: Update expected output.
+
+2020-03-11  Alan Modra  <amodra@gmail.com>
+
+       PR 25651
+       * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
+       pad_to_set on second block of code dealing with padding.
+       Replace "c" with "num_sec" and don't recalculate number of
+       sections on second block.  Size arrays using sizeof (element)
+       rather than sizeof (element type).
+
+2020-03-10  Alan Modra  <amodra@gmail.com>
+
+       * objdump.c (disassemble_section): Don't call qsort unless
+       sym count is at least two.
+       (disassemble_data): Don't call memcpy with NULL src.
+
 2020-03-09  Alan Modra  <amodra@gmail.com>
 
        PR 25645