acadia-newlib/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
Makefile.in
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
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
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
strftime.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
strptime.c
time.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
time.tex
tzcalc_limits.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
tzlock.c
tzset.c
tzset_r.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
tzvars.c
wcsftime.c