Re: vms buffer overflows and large memory allocation
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index f2ddd86a3c9cb7032e1468983b850a2f8a8cbfc4..eeb042c32f39b08e0b0f6a4905e96e7364b0b412 100644 (file)
@@ -1,3 +1,84 @@
+2020-02-24  Alan Modra  <amodra@gmail.com>
+
+       * vms-lib.c (_bfd_vms_lib_archive_p): Correct overflow checks.
+
+2020-02-24  Alan Modra  <amodra@gmail.com>
+
+       * vms-lib.c (struct carsym_mem): Add limit.
+       (vms_add_index): Heed limit.
+       (vms_traverse_index): Catch buffer overflows.  Remove outdated fixme.
+       (vms_lib_read_index): Set up limit.  Catch 32-bit overflow.
+       Always return actual number read.
+       (_bfd_vms_lib_archive_p): Catch buffer overflows.  Replace
+       assertion with error exit.
+
+2020-02-22  Alan Modra  <amodra@gmail.com>
+
+       PR 25585
+       * elf.c (assign_file_positions_for_load_sections): Continue linking
+       on "PHDR segment not covered by LOAD segment" errors.
+
+2020-02-21  Alan Modra  <amodra@gmail.com>
+
+       * mach-o.c (bfd_mach_o_canonicalize_relocs): Fix ineffective
+       overflow check.
+       (bfd_mach_o_canonicalize_reloc): Likewise.
+       (bfd_mach_o_canonicalize_dynamic_reloc): Likewise.  Sanity check
+       counts and offsets against file size.
+       (bfd_mach_o_build_dysymtab): Fix ineffective overflow check.
+       (bfd_mach_o_mangle_sections): Remove unnecessary overflow check.
+       (bfd_mach_o_read_symtab_symbols): Sanity check count and offset
+       against file size.  Delete symbol table error message.
+       (bfd_mach_o_read_dysymtab): Sanity check counts and offsets
+       against file size.
+       (bfd_mach_o_read_symtab): Likewise.
+       (bfd_mach_o_read_command): Pass file size.
+       (bfd_mach_o_scan): Sanity check command count against file size.
+
+2020-02-21  Alan Modra  <amodra@gmail.com>
+
+       PR 25569
+       * aoutx.h (adjust_o_magic, adjust_z_magic, adjust_n_magic): Use
+       "text", "data" and "bss" section pointer vars.  Don't update
+       section size, just exec header sizes.
+       (adjust_sizes_and_vmas): Don't update text section size.  Set
+       initial exec header a_text.  Print exec headers sizes.
+       * pdp11.c (adjust_o_magic, adjust_z_magic, adjust_n_magic),
+       (adjust_sizes_and_vmas): Similarly.  Formatting.
+       (final_link): Correct final file extension.
+
+2020-02-20  Nick Clifton  <nickc@redhat.com>
+
+       * elf-bfd.h (struct elf_backend_data): Add symbol_section_index
+       callback.
+       * elfxx-target.h (elf_backend_symbol_section_index): Provide
+       default definition.
+       (elfNN_bed): Initialise the symbol_section_index field.
+       * elf.c (swap_out_syms): Call symbol_section_index, if defined, on
+       OS and PROC specific section indicies.  Warn if converting other
+       reserved incidies to SHN_ABS.
+
+2020-02-19  Sergey Belyashov  <sergey.belyashov@gmail.com>
+
+       PR 25537
+       * cpu-z80.c: Add machine type compatibility checking.
+
+2020-02-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/25355
+       * plugin.c (plugin_list_entry): Remove handle.
+       (try_load_plugin): Call dlclose before return.
+
+2020-02-19  Alan Modra  <amodra@gmail.com>
+
+       * libbfd-in.h (_bfd_constant_p): Define.
+       (_bfd_alloc_and_read, _bfd_malloc_and_read): Check read size against
+       file size before allocating memory.
+       * coffgen.c (_bfd_coff_get_external_symbols): Remove file size check.
+       * elf.c (bfd_elf_get_str_section): Likewise.
+       (_bfd_elf_slurp_version_tables): Likewise.
+       * libbfd.h: Regenerate.
+
 2020-02-19  Alan Modra  <amodra@gmail.com>
 
        * libbfd-in.h (_bfd_alloc_and_read, _bfd_malloc_and_read): New.
This page took 0.023918 seconds and 4 git commands to generate.