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

Issue 263833005: Knock out injected safe-browsing prefixes. (Closed)

Created:
6 years, 7 months ago by Scott Hess - ex-Googler
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Knock out injected safe-browsing prefixes. The safe-browsing update code has long injected prefixes when a fullhash was seen. This causes incorrect behavior. That case can be detected by observing prefixes in the same chunk as fullhashes, which cannot be sent by the server. BUG=361248 R=jar@chromium.org, mattm@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268815

Patch Set 1 #

Patch Set 2 : add ContainsBrowseUrl test. #

Total comments: 2

Patch Set 3 : adjust knockout test ordering and comments to make more sense. add test that golden file has prefi… #

Total comments: 1

Patch Set 4 : additional color on the histogram. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -9 lines) Patch
M chrome/browser/safe_browsing/prefix_set.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 2 chunks +2 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 1 2 chunks +95 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store.cc View 3 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file_unittest.cc View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_unittest.cc View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Scott Hess - ex-Googler
Depends on https://codereview.chromium.org/266793002/ , else fails expected post-read test in SafeBrowsingDatabaseTest.BrowseDatabase. Replaces https://codereview.chromium.org/232223005/ , I'll ...
6 years, 7 months ago (2014-05-01 22:16:21 UTC) #1
Scott Hess - ex-Googler
On 2014/05/01 22:16:21, shess wrote: > Depends on https://codereview.chromium.org/266793002/ , else fails expected > post-read ...
6 years, 7 months ago (2014-05-01 22:19:49 UTC) #2
Scott Hess - ex-Googler
add ContainsBrowseUrl test.
6 years, 7 months ago (2014-05-01 22:41:41 UTC) #3
Scott Hess - ex-Googler
OK, pulled in the test. The last EXPECT of ContainsBrowseURL test was TRUE with the ...
6 years, 7 months ago (2014-05-01 22:44:13 UTC) #4
mattm
https://codereview.chromium.org/263833005/diff/20001/chrome/browser/safe_browsing/safe_browsing_store_unittest.cc File chrome/browser/safe_browsing/safe_browsing_store_unittest.cc (right): https://codereview.chromium.org/263833005/diff/20001/chrome/browser/safe_browsing/safe_browsing_store_unittest.cc#newcode334 chrome/browser/safe_browsing/safe_browsing_store_unittest.cc:334: // An add with no corresponding sub. Both items ...
6 years, 7 months ago (2014-05-02 01:41:08 UTC) #5
Scott Hess - ex-Googler
In adjusting this, I realized that maybe it would also be useful to have a ...
6 years, 7 months ago (2014-05-05 22:41:32 UTC) #6
mattm
lgtm
6 years, 7 months ago (2014-05-06 00:04:47 UTC) #7
Scott Hess - ex-Googler
Jim for histograms.xml. Thanks!
6 years, 7 months ago (2014-05-06 03:36:24 UTC) #8
Scott Hess - ex-Googler
Jim, ping for histograms.xml? Thansk. On Mon, May 5, 2014 at 8:36 PM, <shess@chromium.org> wrote: ...
6 years, 7 months ago (2014-05-06 20:39:49 UTC) #9
jar (doing other things)
LGTM % nit. *Please* expand on your prose. https://codereview.chromium.org/263833005/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/263833005/diff/40001/tools/metrics/histograms/histograms.xml#newcode22424 tools/metrics/histograms/histograms.xml:22424: + ...
6 years, 7 months ago (2014-05-07 00:12:11 UTC) #10
Scott Hess - ex-Googler
additional color on the histogram.
6 years, 7 months ago (2014-05-07 00:42:36 UTC) #11
Scott Hess - ex-Googler
PTAL at updated histogram text?
6 years, 7 months ago (2014-05-07 00:43:51 UTC) #12
jar (doing other things)
lgtm
6 years, 7 months ago (2014-05-07 01:37:20 UTC) #13
Scott Hess - ex-Googler
The CQ bit was checked by shess@chromium.org
6 years, 7 months ago (2014-05-07 01:41:37 UTC) #14
Scott Hess - ex-Googler
On 2014/05/07 01:37:20, jar wrote: > lgtm Thanks!
6 years, 7 months ago (2014-05-07 01:41:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/263833005/60001
6 years, 7 months ago (2014-05-07 01:45:18 UTC) #16
Scott Hess - ex-Googler
The CQ bit was unchecked by shess@chromium.org
6 years, 7 months ago (2014-05-07 15:55:56 UTC) #17
Scott Hess - ex-Googler
The CQ bit was checked by shess@chromium.org
6 years, 7 months ago (2014-05-07 15:56:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/263833005/60001
6 years, 7 months ago (2014-05-07 16:00:08 UTC) #19
Scott Hess - ex-Googler
Committed patchset #4 manually as r268815 (presubmit successful).
6 years, 7 months ago (2014-05-07 16:35:51 UTC) #20
Scott Hess - ex-Googler
6 years, 7 months ago (2014-05-07 16:36:05 UTC) #21
Message was sent while issue was closed.
On 2014/05/07 16:00:08, I haz the power (commit-bot) wrote:
> CQ is trying da patch. Follow status at
>  https://chromium-status.appspot.com/cq/shess@chromium.org/263833005/60001

Sigh.  It spent all night stuck pending, and now it looks like that's where it's
at again.  I'm around for a few hours, dcommit'ing.

Powered by Google App Engine
This is Rietveld 408576698