diff options
author | glen.beasley%sun.com <devnull@localhost> | 2005-12-20 18:18:50 +0000 |
---|---|---|
committer | glen.beasley%sun.com <devnull@localhost> | 2005-12-20 18:18:50 +0000 |
commit | f7d5a33c25c54027812596e62353b6d21dc64717 (patch) | |
tree | e6de937c2d3a0bfcf1c61c6d434720c4d63809b7 | |
parent | 374608b6900ab23da0f7d1b9db5bf8eec46b8c61 (diff) | |
download | nss-hg-f7d5a33c25c54027812596e62353b6d21dc64717.tar.gz |
318962 buffer fix for SHA Monte Carlo tests r=wan-teh
-rw-r--r-- | security/nss/cmd/fipstest/fipstest.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/nss/cmd/fipstest/fipstest.c b/security/nss/cmd/fipstest/fipstest.c index 1502269e0..a6c58a96e 100644 --- a/security/nss/cmd/fipstest/fipstest.c +++ b/security/nss/cmd/fipstest/fipstest.c @@ -2216,8 +2216,7 @@ SECStatus sha_mct_test(unsigned int MDLen, unsigned char *seed, FILE *resp) unsigned char MD_i1[HASH_LENGTH_MAX]; /* MD[i-1] */ unsigned char MD_i[HASH_LENGTH_MAX]; /* MD[i] */ unsigned char msg[HASH_LENGTH_MAX*3]; - char buf[HASH_LENGTH_MAX + 6]; /* MAX buf MD = MD[HASH_LENGTH_MAX] */ - + char buf[HASH_LENGTH_MAX*2 + 1]; /* MAX buf MD_i as a hex string */ for (j=0; j<100; j++) { /* MD_0 = MD_1 = MD_2 = seed */ |