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

Issue 2321823002: Exclude exe files while unzipping CRXes (Closed)

Created:
4 years, 3 months ago by meacer
Modified:
4 years, 2 months ago
Reviewers:
Devlin, hshi, hshi1
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Exclude exe files while unzipping CRXes BUG=468355 Committed: https://crrev.com/b040d3a050ac90bdae599ced55b2f8f7ac84bc30 Cr-Commit-Position: refs/heads/master@{#417494}

Patch Set 1 #

Patch Set 2 : Fix compile on Windows #

Patch Set 3 : Add browser tests #

Patch Set 4 : Fix build #

Total comments: 10

Patch Set 5 : Devlin comments #

Total comments: 2

Patch Set 6 : Ignore case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -4 lines) Patch
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/blocked_file_types.crx View 1 2 3 4 5 Binary file 0 comments Download
A chrome/test/data/extensions/blocked_file_types.pem View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M extensions/utility/unpacker.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/utility/unpacker.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/utility/unpacker_unittest.cc View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
M extensions/utility/utility_handler.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M third_party/zlib/google/zip.h View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/zlib/google/zip.cc View 1 2 2 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 45 (24 generated)
meacer
Devlin, can you PTAL? Thanks.
4 years, 3 months ago (2016-09-08 20:46:49 UTC) #14
meacer
Devlin, can you PTAL? Thanks.
4 years, 3 months ago (2016-09-08 20:46:51 UTC) #15
Devlin
https://codereview.chromium.org/2321823002/diff/60001/extensions/utility/extension_extractor_filter.cc File extensions/utility/extension_extractor_filter.cc (right): https://codereview.chromium.org/2321823002/diff/60001/extensions/utility/extension_extractor_filter.cc#newcode14 extensions/utility/extension_extractor_filter.cc:14: return file_path.Extension() != FILE_PATH_LITERAL(".exe"); Should this be FinalExtension()? https://codereview.chromium.org/2321823002/diff/60001/extensions/utility/extension_extractor_filter.h ...
4 years, 3 months ago (2016-09-08 21:10:16 UTC) #16
meacer
https://codereview.chromium.org/2321823002/diff/60001/extensions/utility/extension_extractor_filter.cc File extensions/utility/extension_extractor_filter.cc (right): https://codereview.chromium.org/2321823002/diff/60001/extensions/utility/extension_extractor_filter.cc#newcode14 extensions/utility/extension_extractor_filter.cc:14: return file_path.Extension() != FILE_PATH_LITERAL(".exe"); On 2016/09/08 21:10:16, Devlin wrote: ...
4 years, 3 months ago (2016-09-08 22:40:11 UTC) #19
Devlin
I like it, lgtm!
4 years, 3 months ago (2016-09-08 22:44:13 UTC) #20
meacer
hshi: Can you PTAL at third_party/zlib/google/*?
4 years, 3 months ago (2016-09-08 22:47:49 UTC) #22
hshi
Mustafa: I don't have access to bug 468355 (I assume it is a security incident ...
4 years, 3 months ago (2016-09-08 22:52:13 UTC) #24
hshi
https://codereview.chromium.org/2321823002/diff/80001/extensions/utility/unpacker.cc File extensions/utility/unpacker.cc (right): https://codereview.chromium.org/2321823002/diff/80001/extensions/utility/unpacker.cc#newcode120 extensions/utility/unpacker.cc:120: return file_path.FinalExtension() != FILE_PATH_LITERAL(".exe"); See filepath.h: // Returns true ...
4 years, 3 months ago (2016-09-08 22:54:43 UTC) #25
meacer
> Mustafa: I don't have access to bug 468355 (I assume it is a security ...
4 years, 3 months ago (2016-09-09 00:37:14 UTC) #28
hshi
lgtm
4 years, 3 months ago (2016-09-09 00:39:14 UTC) #29
hshi1
lgtm
4 years, 3 months ago (2016-09-09 00:41:12 UTC) #30
meacer
Thanks!
4 years, 3 months ago (2016-09-09 00:44:19 UTC) #31
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/2321823002/100001
4 years, 3 months ago (2016-09-09 00:44:57 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/232792)
4 years, 3 months ago (2016-09-09 00:57:41 UTC) #36
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/2321823002/100001
4 years, 3 months ago (2016-09-09 01:37:00 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-09 03:20:40 UTC) #39
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/b040d3a050ac90bdae599ced55b2f8f7ac84bc30 Cr-Commit-Position: refs/heads/master@{#417494}
4 years, 3 months ago (2016-09-09 03:22:28 UTC) #41
xhwang
On 2016/09/09 03:22:28, commit-bot: I haz the power wrote: > Patchset 6 (id:??) landed as ...
4 years, 2 months ago (2016-10-21 00:41:51 UTC) #42
Devlin
On 2016/10/21 00:41:51, xhwang wrote: > On 2016/09/09 03:22:28, commit-bot: I haz the power wrote: ...
4 years, 2 months ago (2016-10-21 15:07:30 UTC) #43
meacer
On 2016/10/21 15:07:30, Devlin wrote: > On 2016/10/21 00:41:51, xhwang wrote: > > On 2016/09/09 ...
4 years, 2 months ago (2016-10-21 22:30:48 UTC) #44
Devlin
4 years, 2 months ago (2016-10-22 01:27:58 UTC) #45
Message was sent while issue was closed.
On 2016/10/21 22:30:48, Mustafa Emre Acer wrote:
> On 2016/10/21 15:07:30, Devlin wrote:
> > On 2016/10/21 00:41:51, xhwang wrote:
> > > On 2016/09/09 03:22:28, commit-bot: I haz the power wrote:
> > > > Patchset 6 (id:??) landed as
> > > > https://crrev.com/b040d3a050ac90bdae599ced55b2f8f7ac84bc30
> > > > Cr-Commit-Position: refs/heads/master@{#417494}
> > > 
> > > Does it make sense to change those DLOG(WARNING) to DVLOG(2)? Developers
run
> > > debug builds all the time and I am getting a lot of logs from zip.cc, e.g.

> > > 
> > >
> >
>
https://cs.chromium.org/chromium/src/third_party/zlib/google/zip.cc?rcl=0&l=126
> > 
> > When the log was added, it was because we only skipped files that shouldn't
be
> > there at all (e.g. exes), and I'd be fine with having logspam for that,
since
> it
> > would indicate something is wrong.  But now we do two passes here (the first
> > just to get the manifest), so all the other files are skipped there. 
meacer@,
> > can we only emit the log when we skip a dangerous file, rather than in the
> first
> > pass?
> 
> We discussed adding an install warning for skipped files before:
> https://crbug.com/645263
> 
> I think if we implement that, we can remove this DLOG altogether or make it a
> DVLOG?
> Since the callers already know what files should be ignored, there would be
> little
> reason to keep the dlog except for extension developers who will be informed
by
> the
> install warning. WDYT?

I agree; if we implement the install warnings, we don't need these logs at all.

Powered by Google App Engine
This is Rietveld 408576698