Fix 32-bit integer overflow when calculating TZ rules
This commit is contained in:
parent
5f3a301fd5
commit
b7a357e92e
|
@ -66,7 +66,7 @@ __tzcalc_limits (int year)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* store the change-over time in GMT form by adding offset */
|
/* 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;
|
tz->__tzrule[i].s + tz->__tzrule[i].offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue