Prevent memory exhaustion from a corrupt PE binary with an overlarge number of relocs.
authorNick Clifton <nickc@redhat.com>
Tue, 2 May 2017 10:54:53 +0000 (11:54 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 2 May 2017 10:54:53 +0000 (11:54 +0100)
commit39ff1b79f687b65f4144ddb379f22587003443fb
tree0b1c093f6bd2cc8f4a1f85b9327b37a0feb6a15d
parentd050f7d7f474c7e3ba26902a9cbb185910921a11
Prevent memory exhaustion from a corrupt PE binary with an overlarge number of relocs.

PR 21440
* objdump.c (dump_relocs_in_section): Check for an excessive
number of relocs before attempting to dump them.
binutils/ChangeLog
binutils/objdump.c