ubsan: shift exponent is too large
authorAlan Modra <amodra@gmail.com>
Tue, 16 Feb 2021 08:57:24 +0000 (19:27 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 16 Feb 2021 09:01:15 +0000 (19:31 +1030)
commit7b54caddca1013d10219da097e08d4cd4db6b923
treee1c7f2bd1501e8df4a0b7a9b0b8f427ba1f9ebbb
parent9a12b194b0e9d1bde34aca175a2a7dead2fae7a9
ubsan: shift exponent is too large

* libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
(_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
bfd/ChangeLog
bfd/libbfd.c