]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ubsan: signed integer multiply overflow
authorAlan Modra <amodra@gmail.com>
Sat, 1 Jan 2022 03:22:53 +0000 (13:52 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 1 Jan 2022 03:52:11 +0000 (14:22 +1030)
commit487b0ff02ddafeb27641c7674d4c8b3c9f62c6c3
tree928951564fb255e8745bdffb86f2b16e0e809938
parentad3d14c47e872fcd13d83c9a255266c7027c8e16
ubsan: signed integer multiply overflow

9223371018427387904 * 2 cannot be represented in type 'long', yes, but
we don't care.

* expr.c (expr): Avoid signed overflow.
gas/expr.c