mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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:
@ -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));
|
||||
|
Reference in New Issue
Block a user