Date: Thu, 21 Mar 2024 20:13:52 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277863] Possible regression in mktime(3) Message-ID: <bug-277863-227-jihHEww0vx@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-277863-227@https.bugs.freebsd.org/bugzilla/> References: <bug-277863-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277863 John F. Carr <jfc@mit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfc@mit.edu --- Comment #4 from John F. Carr <jfc@mit.edu> --- Stepping through mktime, I see a binary search in the range INT_MIN to INT_= MAX seconds that fails because time -4611686018427387904 seconds does not conve= rt cleanly to a 32 bit year number when using 32 bit intermediate variables. = In this code y =3D -109624180. if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) { errno =3D EOVERFLOW; return NULL; } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277863-227-jihHEww0vx>