Fix potential address violations when processing a corrupt Alpha VMA binary.
authorNick Clifton <nickc@redhat.com>
Wed, 14 Jun 2017 10:27:15 +0000 (11:27 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 14 Jun 2017 10:27:15 +0000 (11:27 +0100)
commitc53d2e6d744da000aaafe0237bced090aab62818
treefc18cfb81a5c8e0d207d8016c754dfdcf1726868
parentd5722aa2fe9e1d76d98865a9ab77a7b9388743c9
Fix potential address violations when processing a corrupt Alpha VMA binary.

PR binutils/21589
* vms-alpha.c (_bfd_vms_get_value): Add an extra parameter - the
maximum value for the ascic pointer.  Check that name processing
does not read beyond this value.
(_bfd_vms_slurp_etir): Add checks for attempts to read beyond the
end of etir record.
bfd/ChangeLog
bfd/vms-alpha.c