Fix seg-faults in objdump when disassembling a corrupt versados binary.
authorNick Clifton <nickc@redhat.com>
Wed, 14 Jun 2017 09:35:16 +0000 (10:35 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 14 Jun 2017 09:35:16 +0000 (10:35 +0100)
commit04f963fd489cae724a60140e13984415c205f4ac
treedbe556e467371d3ae78fab7a0a8c474836a0dfb0
parent319c2dbe240a797c6f9436bfd64f5c16045ad5a1
Fix seg-faults in objdump when disassembling a corrupt versados binary.

PR binutils/21591
* versados.c (versados_mkobject): Zero the allocated tdata structure.
(process_otr): Check for an invalid offset in the otr structure.
bfd/ChangeLog
bfd/versados.c