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

Issue 2614763002: DCHECK that full hash must be 21 bytes or 32 bytes long. (Closed)

Created:
3 years, 11 months ago by vakh (use Gerrit instead)
Modified:
3 years, 11 months ago
Reviewers:
Nathan Parker
CC:
chromium-reviews, vakh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DCHECK that full hash must be 32 bytes long (URL/Extension SHA256 hash) or 21 bytes long (for IP addresses). BUG=543161 Review-Url: https://codereview.chromium.org/2614763002 Cr-Commit-Position: refs/heads/master@{#442509} Committed: https://chromium.googlesource.com/chromium/src/+/d87619bcc75816bd2d7f8afd31d2e04dfe4507bc

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change DCHECK to accept 32 or 21 size. Add unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M components/safe_browsing_db/v4_store.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/v4_store.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/v4_store_unittest.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
vakh (use Gerrit instead)
3 years, 11 months ago (2017-01-04 18:51:05 UTC) #4
Nathan Parker
lgtm https://codereview.chromium.org/2614763002/diff/1/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2614763002/diff/1/components/safe_browsing_db/v4_store.cc#newcode767 components/safe_browsing_db/v4_store.cc:767: for (const auto& pair : hash_prefix_map_) { Why ...
3 years, 11 months ago (2017-01-04 18:58:46 UTC) #5
vakh (use Gerrit instead)
Change DCHECK to accept 32 or 21 size. Add unit test.
3 years, 11 months ago (2017-01-10 03:45:46 UTC) #8
vakh (use Gerrit instead)
https://codereview.chromium.org/2614763002/diff/1/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2614763002/diff/1/components/safe_browsing_db/v4_store.cc#newcode767 components/safe_browsing_db/v4_store.cc:767: for (const auto& pair : hash_prefix_map_) { On 2017/01/04 ...
3 years, 11 months ago (2017-01-10 03:47:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2614763002/20001
3 years, 11 months ago (2017-01-10 04:31:20 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 06:04:03 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d87619bcc75816bd2d7f8afd31d2...

Powered by Google App Engine
This is Rietveld 408576698