]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Fix UB in isinfl
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 1 May 2025 21:14:37 +0000 (18:14 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 8 May 2025 12:25:49 +0000 (09:25 -0300)
commit258ea844481e987583dc27435960abd44d3cc889
tree1661c83752b2534cd5df5fb22a216d35d1462bfe
parent6deb970376e62e7c527e766a195f47b5b81c94de
x86: Fix UB in isinfl

Building with --enable-ubasn triggers:

$ math/test-ldouble-isinf
UBSAN: Undefined behaviour in ../sysdeps/x86/fpu/s_isinfl.c:25:8 negation of 2147483648 cannot be represented in type 'int'

Also move the isinfl implementation to sysdeps/x86 and remove the
sysdeps/x86_64 version.
sysdeps/x86/fpu/s_isinfl.c [moved from sysdeps/i386/fpu/s_isinfl.c with 88% similarity]
sysdeps/x86_64/fpu/s_isinfl.c [deleted file]