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

Issue 1032093002: Certificate Transparency: Correct month calculation. (Closed)

Created:
5 years, 9 months ago by Eran Messeri
Modified:
5 years, 9 months ago
Reviewers:
davidben, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Certificate Transparency: Correct month calculation. The number of SCTs required for certificates with a validity period of over 14 months (but under 15) was incorrect. Fixed by not counting partial months. BUG=470169 Committed: https://crrev.com/3d509763116223016fe56931f6d11cf7bc435a2e Cr-Commit-Position: refs/heads/master@{#322501}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Addressing review comments #

Total comments: 21

Patch Set 3 : 2nd round of review comments #

Total comments: 4

Patch Set 4 : Addressing davidben's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -37 lines) Patch
M net/cert/cert_policy_enforcer.cc View 1 2 3 2 chunks +28 lines, -12 lines 0 comments Download
M net/cert/cert_policy_enforcer_unittest.cc View 1 2 2 chunks +62 lines, -25 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Eran Messeri
5 years, 9 months ago (2015-03-25 11:55:50 UTC) #2
davidben
https://codereview.chromium.org/1032093002/diff/1/net/cert/cert_policy_enforcer.cc File net/cert/cert_policy_enforcer.cc (right): https://codereview.chromium.org/1032093002/diff/1/net/cert/cert_policy_enforcer.cc#newcode45 net/cert/cert_policy_enforcer.cc:45: Maybe add a comment here that this is the ...
5 years, 9 months ago (2015-03-25 15:00:55 UTC) #3
Ryan Sleevi
Yeah, David's pointed out the buggy path month_diff = year_diff * 12 + (end_date.month - ...
5 years, 9 months ago (2015-03-25 16:54:23 UTC) #4
Eran Messeri
Thanks for the quick review, everyone. I believe I've addressed all comments. Note the explanation ...
5 years, 9 months ago (2015-03-25 18:27:29 UTC) #5
davidben
https://codereview.chromium.org/1032093002/diff/20001/net/cert/cert_policy_enforcer.cc File net/cert/cert_policy_enforcer.cc (right): https://codereview.chromium.org/1032093002/diff/20001/net/cert/cert_policy_enforcer.cc#newcode47 net/cert/cert_policy_enforcer.cc:47: MonthsDiff() : num_months(0), last_month_is_full(false) {} Per https://chromium-cpp.appspot.com/, these can ...
5 years, 9 months ago (2015-03-25 19:10:11 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/1032093002/diff/20001/net/cert/cert_policy_enforcer.cc File net/cert/cert_policy_enforcer.cc (right): https://codereview.chromium.org/1032093002/diff/20001/net/cert/cert_policy_enforcer.cc#newcode47 net/cert/cert_policy_enforcer.cc:47: MonthsDiff() : num_months(0), last_month_is_full(false) {} On 2015/03/25 19:10:11, David ...
5 years, 9 months ago (2015-03-25 19:16:07 UTC) #7
Eran Messeri
Addressed all comment. https://codereview.chromium.org/1032093002/diff/20001/net/cert/cert_policy_enforcer.cc File net/cert/cert_policy_enforcer.cc (right): https://codereview.chromium.org/1032093002/diff/20001/net/cert/cert_policy_enforcer.cc#newcode47 net/cert/cert_policy_enforcer.cc:47: MonthsDiff() : num_months(0), last_month_is_full(false) {} On ...
5 years, 9 months ago (2015-03-26 10:47:18 UTC) #8
davidben
lgtm with two comments. https://codereview.chromium.org/1032093002/diff/40001/net/cert/cert_policy_enforcer.cc File net/cert/cert_policy_enforcer.cc (right): https://codereview.chromium.org/1032093002/diff/40001/net/cert/cert_policy_enforcer.cc#newcode50 net/cert/cert_policy_enforcer.cc:50: }; This struct should go ...
5 years, 9 months ago (2015-03-26 15:05:06 UTC) #9
Eran Messeri
Addressed both comments. Ryan, I intend to submit this patchset, I'll be happy to address ...
5 years, 9 months ago (2015-03-26 22:58:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032093002/60001
5 years, 9 months ago (2015-03-26 22:59:13 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-27 00:00:42 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-27 00:02:02 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3d509763116223016fe56931f6d11cf7bc435a2e
Cr-Commit-Position: refs/heads/master@{#322501}

Powered by Google App Engine
This is Rietveld 408576698