asan: vms-alpha: stack buffer overflow

32 bits is too big for the field.

	* vms-alpha.c (alpha_vms_write_exec): Write 16 bits to eihd.alias.
This commit is contained in:
Alan Modra
2020-11-09 23:23:34 +10:30
parent 9372689d72
commit 5cbc0eb01a
2 changed files with 5 additions and 1 deletions

View File

@ -3252,7 +3252,7 @@ alpha_vms_write_exec (bfd *abfd)
bfd_putl32 (16, eihd.virt_mem_block_size);
bfd_putl32 (0, eihd.ext_fixup_off);
bfd_putl32 (0, eihd.noopt_psect_off);
bfd_putl32 (-1, eihd.alias);
bfd_putl16 (-1, eihd.alias);
/* Alloc EIHA. */
eiha = (struct vms_eiha *)((char *) &eihd + PRIV (file_pos));