PR25645, readelf segfault reading fuzzed alpha-vms binary
authorAlan Modra <amodra@gmail.com>
Mon, 9 Mar 2020 10:56:05 +0000 (21:26 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 9 Mar 2020 11:08:48 +0000 (21:38 +1030)
commit95099889938ef50922779a0db03f277eea8747b5
tree74ec293db6ce991b5bee0bcb34c484dcbbf5fa74
parent865e20278c2665c13946a32ae67f55161b0d56d7
PR25645, readelf segfault reading fuzzed alpha-vms binary

PR 25645
* readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
to get_data rather than multiplying.
(dump_ia64_vms_dynamic_relocs): Likewise.
(process_version_sections): Correct order of size and nmemb args
in get_data call.
(process_mips_specific): Likewise.
binutils/ChangeLog
binutils/readelf.c