asan: alpha-vms: buffer overflow in vms_traverse_index
authorAlan Modra <amodra@gmail.com>
Mon, 3 Aug 2020 13:44:57 +0000 (23:14 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 3 Aug 2020 13:48:34 +0000 (23:18 +0930)
commite44a1d7b9ad8d73f6cea1f20fe353fc12f9b8e66
treec9e8c4e7b0d6dca858c25630feb844739f861e64
parentb5f386d52049067ca081651a460ab4ae85e327d4
asan: alpha-vms: buffer overflow in vms_traverse_index

* vms-lib.c (vms_traverse_index): Sanity check size remaining
before accessing vms_idx or vms_elfidx.
bfd/ChangeLog
bfd/vms-lib.c