PR22746, crash when running 32-bit objdump on corrupted file
authorAlan Modra <amodra@gmail.com>
Thu, 25 Jan 2018 11:17:41 +0000 (21:47 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 25 Jan 2018 11:35:10 +0000 (22:05 +1030)
commit38e64b0ecc7f4ee64a02514b8d532782ac057fa2
tree809083d413de8ca6e26a3e2b3a23faac60879baf
parentbb363086e7743506d78bc6b1e56face0fb1fc93f
PR22746, crash when running 32-bit objdump on corrupted file

Avoid unsigned int overflow by performing bfd_size_type multiplication.

PR 22746
* elfcode.h (elf_object_p): Avoid integer overflow.
bfd/ChangeLog
bfd/elfcode.h