Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In _WIN32 builds, TIME_MAX needs to be INT32_MAX. Also fix UB-overflow/useless-check in BSD's strptime: (time_t_value * 10) < TIME_MAX is always true since time_t is signed and, if it is not optimised out, it causes a signed integer overflow for input that start with a sequence of characters between "922337203685477581" and "999999999999999999" (inclusive, 64-bit time_t) that is unspecified in standard C. Noticed thanks to a compiler warning in the windows build CI.
- Loading branch information