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

Unified Diff: host/lib/host_signature.c

Issue 4251006: Fix the maximum output size in the call to the external signer. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
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: host/lib/host_signature.c
diff --git a/host/lib/host_signature.c b/host/lib/host_signature.c
index e00824fef0ab81c2b9c5118d8fa62d877001d60e..6440dd21116cb951291f405c70407a0798453d2a 100644
--- a/host/lib/host_signature.c
+++ b/host/lib/host_signature.c
@@ -266,8 +266,7 @@ VbSignature* CalculateSignature_external(const uint8_t* data, uint64_t size,
rv = InvokeExternalSigner(signature_digest_len, /* Input length */
signature_digest, /* Input data */
GetSignatureData(sig), /* Output sig */
- (sizeof(VbSignature) + /* Max Output sig size. */
- siglen_map[key_algorithm]) ,
+ siglen_map[key_algorithm], /* Max Output sig size */
key_file, /* Key file to use */
external_signer); /* External cmd to invoke */
Free(signature_digest);
« 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