[PATCH 0/8] Fix UB in math implementations
Adhemerval Zanella
adhemerval.zanella@linaro.org
Fri Apr 25 20:54:21 GMT 2025
>From a recent experiment to build glibc with -fsanitize=undefined [1],
I found that some float implementation triggers UB. The issues from
this patchset were already fixed in the upstream projects.
[1] https://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/azanella/ubsan-undef
Adhemerval Zanella (8):
math: Fix UB on atanhf
math: Fix UB on coshf
math: Fix UB on logf
math: Fix UB on sinhf
math: Fix UB on cbrtf
math: Fix UB on cospif
math: Fix UB on erfcf
math: Fix UB on sinpif
sysdeps/ieee754/flt-32/e_atanhf.c | 4 ++--
sysdeps/ieee754/flt-32/e_coshf.c | 6 +++---
sysdeps/ieee754/flt-32/e_logf.c | 2 +-
sysdeps/ieee754/flt-32/e_sinhf.c | 6 +++---
sysdeps/ieee754/flt-32/s_cbrtf.c | 6 +++---
sysdeps/ieee754/flt-32/s_cospif.c | 6 +++---
sysdeps/ieee754/flt-32/s_erfcf.c | 4 ++--
sysdeps/ieee754/flt-32/s_sinpif.c | 8 ++++----
8 files changed, 21 insertions(+), 21 deletions(-)
--
2.43.0
More information about the Libc-alpha
mailing list