diff options
author | Alan Modra <amodra@gmail.com> | 2020-05-20 07:55:56 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-20 07:59:15 +0930 |
commit | 3c568b8afab512d12eb5adcf304e505b1bce644d (patch) | |
tree | ee5f7e9f4f5a438c803192e2ca709f7f6cde825f /bfd/ChangeLog | |
parent | c7e976792002c6a2810f9bb6cc3ad210514eb650 (diff) | |
download | gdb-3c568b8afab512d12eb5adcf304e505b1bce644d.zip gdb-3c568b8afab512d12eb5adcf304e505b1bce644d.tar.gz gdb-3c568b8afab512d12eb5adcf304e505b1bce644d.tar.bz2 |
PR26011, excessive memory allocation with fuzzed reloc sections
Check sizes early, before users of slurp_relocs allocate buffers for
the swapped in relocs.
PR 26011
* elf.c (_bfd_elf_get_reloc_upper_bound): Sanity check reloc
section size against file size.
(_bfd_elf_get_dynamic_reloc_upper_bound): Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cb168f1..6d3673d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2020-05-20 Alan Modra <amodra@gmail.com> + + PR 26011 + * elf.c (_bfd_elf_get_reloc_upper_bound): Sanity check reloc + section size against file size. + (_bfd_elf_get_dynamic_reloc_upper_bound): Likewise. + 2020-05-19 Gunther Nikl <gnikl@justmail.de> PR 26005 |