file size check in _bfd_alloc_and_read
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index f2ddd86a3c9cb7032e1468983b850a2f8a8cbfc4..e68e55850522718eca0ad6f5ca57c05efa092efd 100644 (file)
@@ -1,3 +1,13 @@
+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.023281 seconds and 4 git commands to generate.