Re: vms buffer overflows and large memory allocation
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 6ee734c4fc9797211f71c79b5104565286585fcf..eeb042c32f39b08e0b0f6a4905e96e7364b0b412 100644 (file)
@@ -1,3 +1,52 @@
+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
This page took 0.023917 seconds and 4 git commands to generate.