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

Issue 999003003: Include attributes of zipped binaries in ClientDownloadRequests. (Closed)

Created:
5 years, 9 months ago by grt (UTC plus 2)
Modified:
5 years, 9 months ago
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@zip2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Include attributes of zipped binaries in ClientDownloadRequests. This change give the SandboxedZipAnalyzer the power to extract archived binaries into a temporary file and extract features from them. BUG=462584 Committed: https://crrev.com/88f4fa3f1874945019604aa1e88af6ebe61c1c1f Cr-Commit-Position: refs/heads/master@{#321803}

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : update #

Patch Set 4 : update #

Patch Set 5 : ready #

Patch Set 6 : compile #

Patch Set 7 : with binaries #

Patch Set 8 : pull out results #

Total comments: 3

Patch Set 9 : fix unittest for non-win #

Patch Set 10 : sync to position 321765 #

Patch Set 11 : fix ordering of SandboxedZipAnalyzer methods #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+532 lines, -96 lines) Patch
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/sandboxed_zip_analyzer.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +46 lines, -14 lines 2 comments Download
A chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +180 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_utility_messages.h View 1 2 3 4 5 6 7 3 chunks +71 lines, -5 lines 0 comments Download
M chrome/common/safe_browsing/binary_feature_extractor.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/safe_browsing/binary_feature_extractor_posix.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/safe_browsing/binary_feature_extractor_win.cc View 1 2 3 4 2 chunks +69 lines, -50 lines 0 comments Download
M chrome/common/safe_browsing/csd.proto View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/common/safe_browsing/zip_analyzer.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -8 lines 0 comments Download
M chrome/common/safe_browsing/zip_analyzer.cc View 1 2 3 4 5 6 7 2 chunks +75 lines, -2 lines 0 comments Download
A + chrome/common/safe_browsing/zip_analyzer_results.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -9 lines 0 comments Download
A chrome/common/safe_browsing/zip_analyzer_results.cc View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
grt (UTC plus 2)
PTAL. I have the new binary files needed by the new unittest in https://codereview.chromium.org/1021323002/ so ...
5 years, 9 months ago (2015-03-20 17:59:53 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/999003003/diff/180001/chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc File chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc (right): https://codereview.chromium.org/999003003/diff/180001/chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc#newcode100 chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc:100: ASSERT_TRUE(binary.has_image_headers()); oh yeah. this needs #if defined(OS_WIN) around it.
5 years, 9 months ago (2015-03-20 20:51:22 UTC) #5
mattm
lgtm with nit https://codereview.chromium.org/999003003/diff/180001/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc File chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc (right): https://codereview.chromium.org/999003003/diff/180001/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc#newcode121 chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc:121: void SandboxedZipAnalyzer::CloseTemporaryFile() { nit: I'd move ...
5 years, 9 months ago (2015-03-23 01:53:40 UTC) #6
grt (UTC plus 2)
Thanks. +tsepez for chrome/common/chrome_utility_messages.h OWNERS review +sky TBR for chrome/utility/* https://codereview.chromium.org/999003003/diff/180001/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc File chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc (right): https://codereview.chromium.org/999003003/diff/180001/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc#newcode121 ...
5 years, 9 months ago (2015-03-23 13:29:16 UTC) #9
sky
I'm not familiar with chrome/utility. Can you find a better owner?
5 years, 9 months ago (2015-03-23 16:00:28 UTC) #10
grt (UTC plus 2)
TBR jhawkins@chromium.org for chrome/utility/chrome_content_utility_client.* OWNERShip.
5 years, 9 months ago (2015-03-23 16:51:06 UTC) #12
James Hawkins
lgtm
5 years, 9 months ago (2015-03-23 16:54:55 UTC) #13
James Hawkins
On 2015/03/23 16:54:55, James Hawkins wrote: > lgtm Consider just adding me as a reviewer ...
5 years, 9 months ago (2015-03-23 16:55:26 UTC) #14
grt (UTC plus 2)
On 2015/03/23 16:55:26, James Hawkins wrote: > On 2015/03/23 16:54:55, James Hawkins wrote: > > ...
5 years, 9 months ago (2015-03-23 16:56:16 UTC) #15
Tom Sepez
Messages LGTM, one unrelated question. https://codereview.chromium.org/999003003/diff/240001/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc File chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc (right): https://codereview.chromium.org/999003003/diff/240001/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc#newcode68 chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc:68: zip_file_.Initialize(zip_file_name_, Not part of ...
5 years, 9 months ago (2015-03-23 17:15:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/999003003/240001
5 years, 9 months ago (2015-03-23 17:16:54 UTC) #19
grt (UTC plus 2)
Thanks. https://codereview.chromium.org/999003003/diff/240001/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc File chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc (right): https://codereview.chromium.org/999003003/diff/240001/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc#newcode68 chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc:68: zip_file_.Initialize(zip_file_name_, On 2015/03/23 17:15:55, Tom Sepez wrote: > ...
5 years, 9 months ago (2015-03-23 17:22:13 UTC) #20
commit-bot: I haz the power
Committed patchset #11 (id:240001)
5 years, 9 months ago (2015-03-23 17:40:08 UTC) #21
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 17:42:12 UTC) #22
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/88f4fa3f1874945019604aa1e88af6ebe61c1c1f
Cr-Commit-Position: refs/heads/master@{#321803}

Powered by Google App Engine
This is Rietveld 408576698