PR26330, Malloc size error in objdump
[binutils-gdb.git] / bfd / ChangeLog
index d0a5916d378c03c72791914517390a52c8a2fae5..25cb69fd13f0478c7b447798bc140e620b6b7430 100644 (file)
@@ -1,3 +1,14 @@
+2020-08-03  Alan Modra  <amodra@gmail.com>
+
+       PR 26330
+       * elf.c (_bfd_elf_get_symtab_upper_bound): Sanity check symbol table
+       size against file size.  Correct LONG_MAX limit check.
+       (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
+       (_bfd_elf_get_reloc_upper_bound): Don't check file size if writing.
+       (_bfd_elf_get_dynamic_reloc_upper_bound): Likewise.
+       * elf64-x86-64-.c (elf_x86_64_get_synthetic_symtab): Use
+       bfd_malloc_and_get_section.
+
 2020-07-31  Alan Modra  <amodra@gmail.com>
 
        PR 26314