DescriptionWhen parsing cookie expiration times, saturate out of range dates
rather than reject them.
Roughly this means cookie expiration times prior to 1970 on (non-OSX)
POSIX, or after 2038 on 32-bit (non-OSX) POSIX, will now be interpreted
as either very small or very large base::Time values.
This is a reland of https://codereview.chromium.org/2424443002/, which
ran into issues due to base::Time::FromTimeT() returning Time::Max() when
passed the maximum time_t value. As a workaround, ParseCookieExpirationTime
now returns the min/max base::Time() values for times outside the supported
range, instad of the min/max base::Time() values supported by
Time::FromUTCExploded() on the current platform.
BUG=649416
Committed: https://crrev.com/b6e737731c0b73340e969939ab1bfa2ffc7cf648
Cr-Commit-Position: refs/heads/master@{#426539}
Patch Set 1 #Patch Set 2 : Switch to returning min/max values. #Patch Set 3 : Clean up comments #
Total comments: 1
Patch Set 4 : Response to comments #
Messages
Total messages: 23 (15 generated)
|