Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Issue 2392873002: Use largest supported date for cookies if timegm overflows

Created:
4 years, 2 months ago by landell
Modified:
4 years, 2 months ago
Reviewers:
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use largest supported date for cookies if timegm overflows Regression CL: https://codereview.chromium.org/1988663002 If a too large date is given to timegm the result might overflow. This is problematic on platforms that have time_t as 32-bit signed integers. Before the change, the largest possible value was returned which works well with large cookie expiration dates. Now a null Time is returned which makes cookies non persistent. BUG=652627

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -1 line) Patch
M base/time/time.h View 1 chunk +2 lines, -0 lines 0 comments Download
M base/time/time_posix.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M net/cookies/cookie_util.cc View 1 chunk +10 lines, -1 line 0 comments Download

Powered by Google App Engine
This is Rietveld 408576698