newlib-cygwin/newlib/libc/time
Freddie Chopin 3305f35570 Fix 32-bit overflow in mktime() when time_t is 64-bits long
When converting number of days since epoch (32-bits) to seconds,
calculations using 32-bit `long` overflow for years above 2038. Solve
this by casting number of days to `time_t` just before final
multiplication.

Signed-off-by: Freddie Chopin <freddie.chopin@gmail.com>
2018-05-29 15:27:03 +02:00
..
Makefile.am Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
Makefile.in makedoc: make errors visible 2017-12-07 11:54:11 +00:00
asctime.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
asctime_r.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
clock.c time: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00
ctime.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
ctime_r.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
difftime.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
gettzinfo.c 2005-02-25 Eric Blake <ebb9@byu.net> 2005-02-25 22:31:21 +00:00
gmtime.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
gmtime_r.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
lcltime.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
lcltime_r.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
local.h ansification: remove _EXFUN, _EXFUN_NOTHROW 2018-01-17 11:47:29 -06:00
mktime.c Fix 32-bit overflow in mktime() when time_t is 64-bits long 2018-05-29 15:27:03 +02:00
month_lengths.c ansification: remove _CONST 2018-01-17 11:47:08 -06:00
strftime.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
strptime.c ansification: remove _CONST 2018-01-17 11:47:08 -06:00
time.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
time.tex * libc/time/strftime.c: Adapt for dual-purpose use so not only 2009-03-09 12:35:03 +00:00
tzcalc_limits.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
tzlock.c ansification: remove _VOID 2018-01-17 11:47:20 -06:00
tzset.c ansification: remove _VOID 2018-01-17 11:47:20 -06:00
tzset_r.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
tzvars.c 2005-11-08 Tom Walsh <tom@openhardware.net> 2005-11-08 22:44:16 +00:00
wcsftime.c time: remove TRAD_SYNOPSIS 2017-12-01 03:41:53 -06:00