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

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

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