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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277863 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 convert cleanly to a 32 bit year number when using 32 bit intermediate variables. In this code y = -109624180. if (ckd_add(&tmp->tm_year, y, -TM_YEAR_BASE)) { errno = EOVERFLOW; return NULL; } -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277863-227-jihHEww0vx>
