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

Issue 2154973002: Reland: PVer4: Keep track of the smallest hashes not their sizes. (Closed)

Created:
4 years, 5 months ago by vakh (use Gerrit instead)
Modified:
4 years, 5 months ago
Reviewers:
Nathan Parker
CC:
chromium-reviews, Scott Hess - ex-Googler, palmer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: PVer4: Keep track of the smallest hashes not their sizes. Also, replace counters with iterators to avoid multiplications --- Original CL: https://codereview.chromium.org/2145163003/ Original description: PVer4: Keep track of the smallest hashes not their sizes. Also, replace counters with iterators to avoid multiplications BUG=543161 Committed: https://crrev.com/4386b67601ca07f067fa21e21ae7d42dd1430ee3 Cr-Commit-Position: refs/heads/master@{#405662} --- BUG=543161 Committed: https://crrev.com/92377d2ba2f14ff0ed48c68ea961b26a743d0908 Cr-Commit-Position: refs/heads/master@{#406021}

Patch Set 1 : git revert e63d726 #

Patch Set 2 : Don't increment the iterator past the end. Check first. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -120 lines) Patch
M components/safe_browsing_db/v4_store.h View 3 chunks +15 lines, -21 lines 0 comments Download
M components/safe_browsing_db/v4_store.cc View 1 3 chunks +50 lines, -67 lines 1 comment Download
M components/safe_browsing_db/v4_store_unittest.cc View 1 chunk +15 lines, -32 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
vakh (use Gerrit instead)
Don't increment the iterator past the end. Check first.
4 years, 5 months ago (2016-07-16 01:00:18 UTC) #1
vakh (use Gerrit instead)
4 years, 5 months ago (2016-07-16 01:00:53 UTC) #5
vakh (use Gerrit instead)
4 years, 5 months ago (2016-07-16 01:01:29 UTC) #6
Nathan Parker
https://codereview.chromium.org/2154973002/diff/20001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2154973002/diff/20001/components/safe_browsing_db/v4_store.cc#newcode206 components/safe_browsing_db/v4_store.cc:206: static_cast<PrefixSize>(std::distance(start, hash_prefixes.end()))) { What was wrong with the code ...
4 years, 5 months ago (2016-07-18 16:14:21 UTC) #9
vakh (use Gerrit instead)
It was incrementing the counter beyond end(), which is an undefined operation, and this was ...
4 years, 5 months ago (2016-07-18 16:21:43 UTC) #10
Nathan Parker
lgtm
4 years, 5 months ago (2016-07-18 16:29:50 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/2154973002/20001
4 years, 5 months ago (2016-07-18 16:31:54 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-18 17:21:18 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 17:21:20 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 17:23:14 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/92377d2ba2f14ff0ed48c68ea961b26a743d0908
Cr-Commit-Position: refs/heads/master@{#406021}

Powered by Google App Engine
This is Rietveld 408576698