[Bug 277863] Possible regression in mktime(3)
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 277863] Possible regression in mktime(3)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Mar 2024 20:13:52 UTC
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.