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

Unified Diff: chrome/browser/extensions/sandboxed_extension_unpacker.cc

Issue 4723007: SandboxedExtensionUnpacker::ValidateSignature should check for an empty signa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/sandboxed_extension_unpacker.cc
===================================================================
--- chrome/browser/extensions/sandboxed_extension_unpacker.cc (revision 65541)
+++ chrome/browser/extensions/sandboxed_extension_unpacker.cc (working copy)
@@ -228,6 +228,10 @@
ReportFailure("Key length is zero");
return false;
}
+ if (header.signature_size == 0) {
+ ReportFailure("Signature length is zero");
+ return false;
+ }
std::vector<uint8> key;
key.resize(header.key_size);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698