summaryrefslogtreecommitdiffstats
path: root/base/sha1_portable.cc
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-14 09:25:30 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-14 09:25:30 +0000
commit0777cfcc4c346ffcb294b63e44b8352ec64f2bf4 (patch)
tree187e04699da9a37f9afe68578195f107d6e4cefa /base/sha1_portable.cc
parentfb43cd39b354fee934812fdc184fa7378c3df3db (diff)
downloadchromium_src-0777cfcc4c346ffcb294b63e44b8352ec64f2bf4.zip
chromium_src-0777cfcc4c346ffcb294b63e44b8352ec64f2bf4.tar.gz
chromium_src-0777cfcc4c346ffcb294b63e44b8352ec64f2bf4.tar.bz2
Initialize SecureHashAlgorithm members.
BUG=None TEST=None CID=7562 Review URL: http://codereview.chromium.org/6482025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sha1_portable.cc')
-rw-r--r--base/sha1_portable.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/sha1_portable.cc b/base/sha1_portable.cc
index d0f3c1c..cc05a5c9 100644
--- a/base/sha1_portable.cc
+++ b/base/sha1_portable.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -99,6 +99,11 @@ static inline void swapends(uint32* t) {
const int SecureHashAlgorithm::kDigestSizeBytes = 20;
void SecureHashAlgorithm::Init() {
+ A = 0;
+ B = 0;
+ C = 0;
+ D = 0;
+ E = 0;
cursor = 0;
l = 0;
H[0] = 0x67452301;