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

Issue 20794003: Fix a bug where packing an extension with bad private key causes crash. (Closed)

Created:
7 years, 5 months ago by dhnishi (use Chromium)
Modified:
7 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix a bug where packing an extension with bad private key causes crash. BUG=263968 TEST=PackExtensionTest.ExtensionWithInvalidKey Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214622

Patch Set 1 #

Total comments: 1

Patch Set 2 : Changed from invalid key error to error while signing error. #

Patch Set 3 : Redid unit test. #

Patch Set 4 : Slight wording change to the pack_extension_unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -2 lines) Patch
M chrome/browser/extensions/extension_creator.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/pack_extension_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/bad_private_key.crx View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/bad_private_key.pem View 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/bad_private_key/manifest.json View 1 chunk +8 lines, -0 lines 0 comments Download
M crypto/signature_creator_nss.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
dhnishi (use Chromium)
@mpcomplete Please review the extensions side of this when you get a chance. When finalizing ...
7 years, 5 months ago (2013-07-26 19:27:23 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/20142007/ also does this but didn't add a test. I was nervous about removing a ...
7 years, 5 months ago (2013-07-26 19:40:25 UTC) #2
Ryan Sleevi
I just merged your bug into http://crbug.com/125997 , which was the first report of the ...
7 years, 5 months ago (2013-07-26 19:56:48 UTC) #3
dhnishi (use Chromium)
On 2013/07/26 19:56:48, Ryan Sleevi wrote: > I just merged your bug into http://crbug.com/125997 , ...
7 years, 5 months ago (2013-07-26 20:03:00 UTC) #4
Matt Perry
lgtm
7 years, 5 months ago (2013-07-26 20:17:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/DHNishi@gmail.com/20794003/6001
7 years, 5 months ago (2013-07-26 21:55:30 UTC) #6
zhchbin
https://codereview.chromium.org/20794003/diff/1/chrome/browser/extensions/pack_extension_unittest.cc File chrome/browser/extensions/pack_extension_unittest.cc (right): https://codereview.chromium.org/20794003/diff/1/chrome/browser/extensions/pack_extension_unittest.cc#newcode77 chrome/browser/extensions/pack_extension_unittest.cc:77: TEST_F(PackExtensionTest, ExtensionWithInvalidKey) { Why don't you put this code ...
7 years, 5 months ago (2013-07-27 00:33:24 UTC) #7
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=63908
7 years, 4 months ago (2013-07-28 00:43:00 UTC) #8
dhnishi (use Chromium)
On 2013/07/27 00:33:24, zhchbin wrote: > https://codereview.chromium.org/20794003/diff/1/chrome/browser/extensions/pack_extension_unittest.cc > File chrome/browser/extensions/pack_extension_unittest.cc (right): > > https://codereview.chromium.org/20794003/diff/1/chrome/browser/extensions/pack_extension_unittest.cc#newcode77 > ...
7 years, 4 months ago (2013-07-29 16:13:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/DHNishi@gmail.com/20794003/6001
7 years, 4 months ago (2013-07-29 16:16:50 UTC) #10
Matt Perry
On 2013/07/29 16:13:01, Daniel Nishi wrote: > On 2013/07/27 00:33:24, zhchbin wrote: > > > ...
7 years, 4 months ago (2013-07-29 18:35:26 UTC) #11
dhnishi (use Chromium)
@mpcomplete Good point. r192255 does specify that the unit test was added specifically to test ...
7 years, 4 months ago (2013-07-29 19:15:06 UTC) #12
Matt Perry
Thanks, LGTM
7 years, 4 months ago (2013-07-29 19:21:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/DHNishi@gmail.com/20794003/57001
7 years, 4 months ago (2013-07-29 20:05:57 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/DHNishi@gmail.com/20794003/57001
7 years, 4 months ago (2013-07-30 04:19:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/DHNishi@gmail.com/20794003/57001
7 years, 4 months ago (2013-07-30 16:14:29 UTC) #16
commit-bot: I haz the power
7 years, 4 months ago (2013-07-31 07:49:20 UTC) #17
Message was sent while issue was closed.
Change committed as 214622

Powered by Google App Engine
This is Rietveld 408576698