Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information