Bug 545440: Increase the read buffer size in BLAPI_SHVerify from 512 to SOFTOKEN_3_13_BRANCH
authorwtc%google.com
Thu, 11 Feb 2010 02:34:53 +0000
branchSOFTOKEN_3_13_BRANCH
changeset 9558 d4b0ac291ae0ba6e926209df13b430a5a4c37308
parent 9554 bbc4cd17b1ce72767e58a0bbb62d073658d815c1
child 9560 9b3a04c8f992bf1ba681e4715da2ef75ba641ffe
push idunknown
push userunknown
push dateunknown
bugs545440
Bug 545440: Increase the read buffer size in BLAPI_SHVerify from 512 to 4096 bytes. r=rrelyea. Tag: SOFTOKEN_3_13_BRANCH
security/nss/lib/freebl/shvfy.c
--- a/security/nss/lib/freebl/shvfy.c
+++ b/security/nss/lib/freebl/shvfy.c
@@ -115,17 +115,17 @@ BLAPI_SHVerify(const char *name, PRFuncP
     SECItem hash;
     int bytesRead, offset;
     SECStatus rv;
     DSAPublicKey key;
     int count;
 
     PRBool result = PR_FALSE; /* if anything goes wrong,
 			       * the signature does not verify */
-    unsigned char buf[512];
+    unsigned char buf[4096];
     unsigned char hashBuf[SHA1_LENGTH];
 
     PORT_Memset(&key,0,sizeof(key));
     hash.data = hashBuf;
     hash.len = sizeof(hashBuf);
 
     if (!shName) {
 	goto loser;