ubsan: alpha-coff: signed integer overflow
* coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
This commit is contained in:
parent
60318db6c5
commit
71780f455f
|
@ -1,3 +1,7 @@
|
|||
2020-01-10 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
|
||||
|
||||
2020-01-09 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 25221
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue