Fix address violations when reading corrupt VMS records.
authorNick Clifton <nickc@redhat.com>
Mon, 19 Jun 2017 13:52:36 +0000 (14:52 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 19 Jun 2017 13:52:36 +0000 (14:52 +0100)
commitbc21b167eb0106eb31d946a0eb5acfb7e4d5d8a1
tree593d45a9586606cc231a3778a0bbc0772f00fff4
parent0f6d864de2469af4223391993b430b0d45573dcb
Fix address violations when reading corrupt VMS records.

PR binutils/21618
* vms-alpha.c (evax_bfd_print_emh): Check for insufficient record
length.
(evax_bfd_print_eeom): Likewise.
(evax_bfd_print_egsd): Check for an overlarge record length.
(evax_bfd_print_etir): Likewise.
bfd/ChangeLog
bfd/vms-alpha.c