asan: alpha-vms: null dereference
authorAlan Modra <amodra@gmail.com>
Sun, 15 Mar 2020 22:14:38 +0000 (08:44 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 16 Mar 2020 00:21:53 +0000 (10:51 +1030)
commit7bac4137d757be98de8f6f8d8a649f04cacfdd2f
treebfece60e1a1d9995b2343c2f93445558864d8777
parent6b9374f1e07cb250736815ff8db263199416adc6
asan: alpha-vms: null dereference

* vms-alpha.c (dst_restore_location): Validate index into
dst_ptr_offsets array before accessing.  Return status.
(dst_retrieve_location): Similarly, making "loc" parameter a
pointer to return value.
(_bfd_vms_slurp_etir): Update calls to above functions.
bfd/ChangeLog
bfd/vms-alpha.c