]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf.c
PR23994, libbfd integer overflow
authorAlan Modra <amodra@gmail.com>
Sun, 16 Dec 2018 12:32:50 +0000 (23:02 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 17 Dec 2018 02:19:38 +0000 (12:49 +1030)
commit3a551c7a1b80fca579461774860574eabfd7f18f
tree5d0b9463f405cd293b2571a6dd3dc04cb914d695
parent40b9228581bb9bfaa3a444a6a19a9b41ebc68c40
PR23994, libbfd integer overflow

PR 23994
* aoutx.h: Include limits.h.
(get_reloc_upper_bound): Detect long overflow and return a file
too big error if it occurs.
* elf.c: Include limits.h.
(_bfd_elf_get_symtab_upper_bound): Detect long overflow and return
a file too big error if it occurs.
(_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
(_bfd_elf_get_dynamic_reloc_upper_bound): Likewise.
bfd/ChangeLog
bfd/aoutx.h
bfd/elf.c