From: Adhemerval Zanella Date: Mon, 5 May 2025 15:22:37 +0000 (-0300) Subject: math: Fix UB in ldbl-96 sinl X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3c633b03da580b9bed498eb0ef30a3c7ac1fae7;p=thirdparty%2Fglibc.git math: Fix UB in ldbl-96 sinl --- diff --git a/sysdeps/ieee754/ldbl-96/k_sinl.c b/sysdeps/ieee754/ldbl-96/k_sinl.c index ee212ba120..26d75687ce 100644 --- a/sysdeps/ieee754/ldbl-96/k_sinl.c +++ b/sysdeps/ieee754/ldbl-96/k_sinl.c @@ -87,7 +87,7 @@ long double __kernel_sinl(long double x, long double y, int iy) { long double absx, h, l, z, sin_l, cos_l_m1; - int index; + unsigned int index; absx = fabsl (x); if (absx < 0.1484375L)