Fix excessive memory allocation attempts and possible integer overfloaws when attempt...
authorNick Clifton <nickc@redhat.com>
Fri, 3 Nov 2017 11:55:21 +0000 (11:55 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 3 Nov 2017 11:55:21 +0000 (11:55 +0000)
commit6cee897971d4d7cd37d2a686bb6d2aa3e759c8ca
tree2e9c1fb1aab283ad800e3c9f98880e0f726c4f86
parent8e68731c8a4aecb3481803e91b9bcd2df182c135
Fix excessive memory allocation attempts and possible integer overfloaws when attempting to read a COFF binary with a corrupt symbol count.

PR 22385
* coffgen.c (_bfd_coff_get_external_symbols): Check for an
overlarge raw syment count.
(coff_get_normalized_symtab): Likewise.
bfd/ChangeLog
bfd/coffgen.c