mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
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:
parent
f15ba945a4
commit
3cb5e955a3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user