msan: vms-alpha use-of-uninitialized-value in dst_retrieve_location

* vms-alpha.c (dst_define_location): Init any unused entries.
This commit is contained in:
Alan Modra 2022-09-12 18:50:53 +09:30
parent f15ba945a4
commit 3cb5e955a3

View File

@ -1570,6 +1570,8 @@ dst_define_location (bfd *abfd, unsigned int loc)
(loc + 1) * sizeof (unsigned int));
if (PRIV (dst_ptr_offsets) == NULL)
return false;
memset (PRIV (dst_ptr_offsets) + PRIV (dst_ptr_offsets_count), 0,
(loc - PRIV (dst_ptr_offsets_count)) * sizeof (unsigned int));
PRIV (dst_ptr_offsets_count) = loc + 1;
}