diff options
author | Alan Modra <amodra@gmail.com> | 2020-01-09 06:41:25 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-01-10 17:32:33 +1030 |
commit | 71780f455fbf35ed4c48e94b4228c55c11a213c8 (patch) | |
tree | 6b3adf1040052fcb9959e5f76f681cfef6025d7d /bfd/coff-alpha.c | |
parent | 60318db6c5459d73ac6fa1ff6d44ca17d797a1aa (diff) | |
download | gdb-71780f455fbf35ed4c48e94b4228c55c11a213c8.zip gdb-71780f455fbf35ed4c48e94b4228c55c11a213c8.tar.gz gdb-71780f455fbf35ed4c48e94b4228c55c11a213c8.tar.bz2 |
ubsan: alpha-coff: signed integer overflow
* coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
Diffstat (limited to 'bfd/coff-alpha.c')
-rw-r--r-- | bfd/coff-alpha.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-alpha.c b/bfd/coff-alpha.c index 0baac2a..4b39bcc 100644 --- a/bfd/coff-alpha.c +++ b/bfd/coff-alpha.c @@ -423,7 +423,7 @@ alpha_ecoff_object_p (bfd *abfd) { bfd_size_type size; - size = sec->line_filepos * 8; + size = (bfd_size_type) sec->line_filepos * 8; BFD_ASSERT (size == sec->size || size + 8 == sec->size); if (!bfd_set_section_size (sec, size)) |