Fix 32-bit integer overflow when calculating TZ rules

This commit is contained in:
Ivan Grokhotov 2020-11-04 13:30:58 -05:00 committed by Jeff Johnston
parent 5f3a301fd5
commit b7a357e92e
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ __tzcalc_limits (int year)
}
/* store the change-over time in GMT form by adding offset */
tz->__tzrule[i].change = days * SECSPERDAY +
tz->__tzrule[i].change = (time_t) days * SECSPERDAY +
tz->__tzrule[i].s + tz->__tzrule[i].offset;
}