You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ext/calendar: Fix integer overflow in GregorianToSdn() and JulianToJd() (php#22604)
php#22603
GregorianToSdn() accepted large positive years up to INT_MAX and then added
4800 before doing the SDN calculation, which triggered signed integer
overflow. JulianToSdn() used the same adjustment and had the same overflow
surface.
Reject years that cannot be adjusted safely before the calculation. Add
coverage for the reported gregoriantojd() case and the matching juliantojd()
case with boundary values.
Closesphp#22602Closesphp#22604
0 commit comments