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

Issue 1758823002: Certificate Transparency: Ensure timestamps over 32 bit are handled correctly. (Closed)

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

Description

Certificate Transparency: Ensure timestamps over 32 bit are handled correctly. Test + code to ensure that timestamps in STHs are handled correctly when bigger than 32 bit. While I'm at it, change the operator<< overloading for STHs to DebugString. BUG= Committed: https://crrev.com/989441be7a61fba9338e74302b7f45ac30226cc7 Cr-Commit-Position: refs/heads/master@{#379276}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressing review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -16 lines) Patch
M net/cert/ct_log_response_parser.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/cert/ct_log_response_parser_unittest.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M net/cert/signed_tree_head.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M net/cert/signed_tree_head.cc View 1 2 chunks +12 lines, -11 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
Eran Messeri
4 years, 9 months ago (2016-03-02 16:19:20 UTC) #3
davidben
lgtm https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser_unittest.cc File net/cert/ct_log_response_parser_unittest.cc (right): https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser_unittest.cc#newcode103 net/cert/ct_log_response_parser_unittest.cc:103: 100, 1L << 34, GetSampleSTHSHA256RootHash(), 1L -> INT64_C(1) ...
4 years, 9 months ago (2016-03-02 17:30:39 UTC) #4
Rob Percival
https://codereview.chromium.org/1758823002/diff/1/net/cert/signed_tree_head.h File net/cert/signed_tree_head.h (right): https://codereview.chromium.org/1758823002/diff/1/net/cert/signed_tree_head.h#newcode52 net/cert/signed_tree_head.h:52: NET_EXPORT std::string DebugString(const SignedTreeHead& sth); GTest won't find this. ...
4 years, 9 months ago (2016-03-02 17:34:04 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser.cc File net/cert/ct_log_response_parser.cc (right): https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser.cc#newcode148 net/cert/ct_log_response_parser.cc:148: signed_tree_head->timestamp = base::Time::FromJsTime(parsed_sth.timestamp); Are you sure this is correct? ...
4 years, 9 months ago (2016-03-02 19:03:23 UTC) #7
davidben
https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser.cc File net/cert/ct_log_response_parser.cc (right): https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser.cc#newcode148 net/cert/ct_log_response_parser.cc:148: signed_tree_head->timestamp = base::Time::FromJsTime(parsed_sth.timestamp); On 2016/03/02 19:03:22, Ryan Sleevi wrote: ...
4 years, 9 months ago (2016-03-02 19:11:46 UTC) #8
Ryan Sleevi
https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser.cc File net/cert/ct_log_response_parser.cc (right): https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser.cc#newcode148 net/cert/ct_log_response_parser.cc:148: signed_tree_head->timestamp = base::Time::FromJsTime(parsed_sth.timestamp); On 2016/03/02 19:11:46, davidben wrote: > ...
4 years, 9 months ago (2016-03-02 19:16:53 UTC) #9
davidben
https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser.cc File net/cert/ct_log_response_parser.cc (right): https://codereview.chromium.org/1758823002/diff/1/net/cert/ct_log_response_parser.cc#newcode148 net/cert/ct_log_response_parser.cc:148: signed_tree_head->timestamp = base::Time::FromJsTime(parsed_sth.timestamp); On 2016/03/02 19:16:53, Ryan Sleevi wrote: ...
4 years, 9 months ago (2016-03-02 19:21:04 UTC) #10
Eran Messeri
Addressed all comments, submitting as I don't see any issue still open after that. If ...
4 years, 9 months ago (2016-03-04 11:28:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1758823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1758823002/20001
4 years, 9 months ago (2016-03-04 13:19:25 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-04 13:24:11 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/989441be7a61fba9338e74302b7f45ac30226cc7 Cr-Commit-Position: refs/heads/master@{#379276}
4 years, 9 months ago (2016-03-04 13:25:44 UTC) #18
Marc Treib
4 years, 9 months ago (2016-03-04 15:11:31 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1760413003/ by treib@chromium.org.

The reason for reverting is: Broke sizes due to introducing new static
initializers:
https://build.chromium.org/p/chromium/builders/Linux%20x64/builds/16434/steps...

It seems that you need to include ostream instead of iostream, see
crbug.com/94794.

Powered by Google App Engine
This is Rietveld 408576698