]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Fix UB on atanhf (BZ 32918)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 25 Apr 2025 20:54:22 +0000 (17:54 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 29 Apr 2025 18:19:42 +0000 (15:19 -0300)
commit92f7b6061d867c5e5f26e84c44a3ec2887bf6c81
treeb126071157872dad6b33b00bc10941dc15455d85
parent0c3425942374e72c3bcac28b2578117d36b0f9df
math: Fix UB on atanhf (BZ 32918)

The left shift overflows for 'int', use unsigned 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_atanhf.c