diff options
author | wtc%google.com <devnull@localhost> | 2013-02-06 04:00:05 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2013-02-06 04:00:05 +0000 |
commit | 887471122d45bf8bc14848f9babd5e2275d80ccf (patch) | |
tree | 1b1ab5b0f7cb4001e393116fdecc5e9d5bf92e23 | |
parent | 09ec6547d7becc70dc1b35cbebde44b62e203690 (diff) | |
download | nss-hg-887471122d45bf8bc14848f9babd5e2275d80ccf.tar.gz |
Bug 822365: do not shift an unsigned int for more than 32 bits. TBR=agl
-rw-r--r-- | security/nss/lib/freebl/hmacct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/freebl/hmacct.c b/security/nss/lib/freebl/hmacct.c index 9cf04f88e..3dcd5f2f3 100644 --- a/security/nss/lib/freebl/hmacct.c +++ b/security/nss/lib/freebl/hmacct.c @@ -180,7 +180,7 @@ static SECStatus mac( } else { /* All other TLS hash functions use a big-endian length. */ for (i = 0; i < 4; i++) { - lengthBytes[4+i+j] = bits >> (8*(7-i)); + lengthBytes[4+i+j] = bits >> (8*(3-i)); } } |