]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Fix UB on cbrtf (BZ 32922)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 25 Apr 2025 20:54:26 +0000 (17:54 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 29 Apr 2025 18:20:10 +0000 (15:20 -0300)
commit7619c1b032229a36606862ebbb06807792bbe57d
tree05feef123c15ba820c3a007b936c0cfe5bef49ce
parentc8775c0423f594543994eea268065e71b76effb0
math: Fix UB on cbrtf (BZ 32922)

The left shift overflows for 'int64_t', use unsigned instead.  It syncs
with CORE-MATH commit f7c7408d1749ec2859ea249495af699359ae559b.

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/s_cbrtf.c