Chromium Code Reviews| Index: mozilla/security/nss/lib/freebl/sha_fast.c |
| =================================================================== |
| --- mozilla/security/nss/lib/freebl/sha_fast.c (revision 158129) |
| +++ mozilla/security/nss/lib/freebl/sha_fast.c (working copy) |
| @@ -396,6 +396,7 @@ |
| SHA1_Begin(&ctx); |
| SHA1_Update(&ctx, src, src_length); |
| SHA1_End(&ctx, dest, &outLen, SHA1_LENGTH); |
| + memset(&ctx, 0, sizeof ctx); |
| return SECSuccess; |
| } |