aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms-alpha.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-11-09 23:23:34 +1030
committerAlan Modra <amodra@gmail.com>2020-11-09 23:27:46 +1030
commit5cbc0eb01a403419d7be753bfdbf1c638a92d759 (patch)
treef2f4387ca94e51d18f3c643272f644f16b78f6c9 /bfd/vms-alpha.c
parent9372689d72f902c8bae90536acc4747fb0a4b1e1 (diff)
downloadgdb-5cbc0eb01a403419d7be753bfdbf1c638a92d759.zip
gdb-5cbc0eb01a403419d7be753bfdbf1c638a92d759.tar.gz
gdb-5cbc0eb01a403419d7be753bfdbf1c638a92d759.tar.bz2
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.
Diffstat (limited to 'bfd/vms-alpha.c')
-rw-r--r--bfd/vms-alpha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 5bf32d6..471e021 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -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));