Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreddie Chopin <freddie.chopin@gmail.com>2018-05-15 21:58:08 +0300
committerCorinna Vinschen <corinna@vinschen.de>2018-05-29 16:27:03 +0300
commit3305f3557064a3cc981e3566959d7833bb81e192 (patch)
treeab5c3c31040ba3428f2dfcc4ae38f0a45423231d /newlib/libm
parente928275566ab8168c078eadee2043a002bd9352d (diff)
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>
Diffstat (limited to 'newlib/libm')
0 files changed, 0 insertions, 0 deletions