[Bug 288778] [libm] Fix undefined behavior of a left shifted of a signed integer

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 19 Aug 2025 03:19:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288778

--- Comment #8 from commit-hook@FreeBSD.org ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=7c4565e3e75e110b167f04efbe9d9d6355fcf2de

commit 7c4565e3e75e110b167f04efbe9d9d6355fcf2de
Author:     Steve Kargl <kargl@FreeBSD.org>
AuthorDate: 2025-08-12 04:26:29 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-08-18 19:23:29 +0000

    [libm] Fix undefined behavior of a left shifted of a signed integer

    PR:     288778

    (cherry picked from commit d180086e6eae2e152e803ed6cf13775a7c006dc7)

 lib/msun/src/e_fmod.c       | 30 ++++++++++++------------------
 lib/msun/src/math_private.h | 21 +++++++++++++++++++++
 lib/msun/src/s_ilogb.c      | 13 +++++--------
 lib/msun/src/s_remquo.c     | 30 ++++++++++++------------------
 4 files changed, 50 insertions(+), 44 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.