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

Issue 8873004: Fix safe-browsing sub parsing for download whitelist. (Closed)

Created:
9 years ago by Scott Hess - ex-Googler
Modified:
9 years ago
Reviewers:
noelutz
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix safe-browsing sub parsing for download whitelist. Sub chunks for kDownloadWhiteList are just a bunch of (add_chunk_number, prefix) pairs, with no leading host/count. Additionally, shift the buffer-overrun checks before the buffer is overrun rather than after, and add DCHECKs to make sure this is honored. BUG=106165 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113566

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -18 lines) Patch
M chrome/browser/safe_browsing/protocol_parser.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_parser.cc View 6 chunks +48 lines, -16 lines 2 comments Download
M chrome/browser/safe_browsing/protocol_parser_unittest.cc View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Scott Hess - ex-Googler
9 years ago (2011-12-08 01:20:45 UTC) #1
noelutz
lgtm thanks for fixing this so quickly! noé. http://codereview.chromium.org/8873004/diff/1/chrome/browser/safe_browsing/protocol_parser.cc File chrome/browser/safe_browsing/protocol_parser.cc (right): http://codereview.chromium.org/8873004/diff/1/chrome/browser/safe_browsing/protocol_parser.cc#newcode448 chrome/browser/safe_browsing/protocol_parser.cc:448: DCHECK_EQ(sizeof(*chunk_id), ...
9 years ago (2011-12-08 03:26:54 UTC) #2
Scott Hess - ex-Googler
http://codereview.chromium.org/8873004/diff/1/chrome/browser/safe_browsing/protocol_parser.cc File chrome/browser/safe_browsing/protocol_parser.cc (right): http://codereview.chromium.org/8873004/diff/1/chrome/browser/safe_browsing/protocol_parser.cc#newcode448 chrome/browser/safe_browsing/protocol_parser.cc:448: DCHECK_EQ(sizeof(*chunk_id), 4u); On 2011/12/08 03:26:54, noelutz wrote: > good ...
9 years ago (2011-12-08 04:12:44 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/8873004/1
9 years ago (2011-12-08 04:13:05 UTC) #4
commit-bot: I haz the power
9 years ago (2011-12-08 06:00:56 UTC) #5
Change committed as 113566

Powered by Google App Engine
This is Rietveld 408576698