]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Fix UB on coshf (BZ 32919)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 25 Apr 2025 20:54:23 +0000 (17:54 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 29 Apr 2025 18:19:54 +0000 (15:19 -0300)
commit4a1b96bf522406a6ed04eb6040f61c6205cff99e
tree7ca4626e57849d7317769cd6fbab31fdf49c89f0
parent92f7b6061d867c5e5f26e84c44a3ec2887bf6c81
math: Fix UB on coshf (BZ 32919)

The left shift overflows for 'int', use uint64_t instead.  It syncs
with CORE-MATH commit 4d6192d2.

Checked on aarch64-linux-gnu, x86_64-linux-gnu, and i686-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/ieee754/flt-32/e_coshf.c