Log Message: |
Make sure to clip date value to the valid range in all paths.
This prevents freezes on 32-bit as we don't end up with magnitudes
so large that there is not enough precision to represent the year
accurately.
It prevents crashes on 64-bit as we don't end up with time_t's corresponding to
date's with a year > 2^31 - 1, on which localtime/gmtime return 0.
Thanks to Zahl for info and for verifying this help on 64-bit..
BUG:189373
|