]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Fix UB on erfcf (BZ 32924)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 25 Apr 2025 20:54:28 +0000 (17:54 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 29 Apr 2025 18:20:25 +0000 (15:20 -0300)
commit7a0d7fb25c22cc7237315792b0f340ec49e3783f
tree1f87ec81f855e349f0050a5fe941f82cc392bf52
parent8eeb7de8a200a43c914cfa230a25b84d3269cae2
math: Fix UB on erfcf (BZ 32924)

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

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_erfcf.c