Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(255)

Issue 11768043: Correctly implement get-proof-by-hash

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by Ben Laurie (Google)
Modified:
12 years, 11 months ago
Reviewers:
Al Cutter
Visibility:
Public.

Description

Correctly implement get-proof-by-hash

Patch Set 1 #

Total comments: 6

Patch Set 2 : Respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -11 lines) Patch
M src/log/log_lookup.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/log/log_lookup.cc View 3 chunks +24 lines, -1 line 0 comments Download
M src/proto/ct.proto View 2 chunks +6 lines, -1 line 0 comments Download
M src/server/ct-rfc-server.cc View 1 3 chunks +16 lines, -9 lines 0 comments Download

Messages

Total messages: 4
Ben Laurie (Google)
12 years, 11 months ago (2013-07-24 15:50:46 UTC) #1
Al Cutter
https://codereview.appspot.com/11768043/diff/1/src/log/log_lookup.cc File src/log/log_lookup.cc (right): https://codereview.appspot.com/11768043/diff/1/src/log/log_lookup.cc#newcode128 src/log/log_lookup.cc:128: for (size_t i = 0; i < audit_path.size(); ++i) ...
12 years, 11 months ago (2013-07-24 16:18:50 UTC) #2
Al Cutter
LGTM
12 years, 11 months ago (2013-07-25 13:04:44 UTC) #3
Ben Laurie (Google)
12 years, 11 months ago (2013-07-25 13:27:45 UTC) #4
https://codereview.appspot.com/11768043/diff/1/src/log/log_lookup.cc
File src/log/log_lookup.cc (right):

https://codereview.appspot.com/11768043/diff/1/src/log/log_lookup.cc#newcode128
src/log/log_lookup.cc:128: for (size_t i = 0; i < audit_path.size(); ++i)
On 2013/07/24 16:18:50, Al Cutter wrote:
> for (const string& node : audit_path) ?

C++11 not allowed yet :-)

https://codereview.appspot.com/11768043/diff/1/src/server/ct-rfc-server.cc
File src/server/ct-rfc-server.cc (right):

https://codereview.appspot.com/11768043/diff/1/src/server/ct-rfc-server.cc#ne...
src/server/ct-rfc-server.cc:352: size_t tree_size =
atoi(qmap["tree_size"].c_str());
On 2013/07/24 16:18:50, Al Cutter wrote:
> check tree_size is valid here ?

It is checked further down, though perhaps not super informatively - if its
value is bogus, the resulting path is empty.

Fixed.

https://codereview.appspot.com/11768043/diff/1/src/server/ct-rfc-server.cc#ne...
src/server/ct-rfc-server.cc:355: // FIXME(benl): this is incorrect - it should
find the path to the
On 2013/07/24 16:18:50, Al Cutter wrote:
> Ding the comment :)

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b