[Bug math/32919] New: math: coshf triggers UB
adhemerval.zanella at linaro dot org
sourceware-bugzilla@sourceware.org
Tue Apr 29 18:09:33 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=32919
Bug ID: 32919
Summary: math: coshf triggers UB
Product: glibc
Version: 2.41
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: adhemerval.zanella at linaro dot org
Target Milestone: ---
The left shift overflows for 'int':
sysdeps/ieee754/flt-32/e_coshf.c
72 double sp = asdouble (TB[jp & 31] + ((jp >> 5) << 52));
73 double sm = asdouble (TB[jm & 31] + ((jm >> 5) << 52));
The CORE-MATH already fixed it on commit 4d6192d2.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list