diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 23:56:21 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 23:56:21 +0000 |
commit | 3d9a85109e7ed1dfa267123e9f34235a91f6fff0 (patch) | |
tree | edcffb3370b1a26e30a68e2cb7ec6bbea50f0513 /crypto | |
parent | 5abe630d97301dac1ce42f9729fb709181d57d60 (diff) | |
download | chromium_src-3d9a85109e7ed1dfa267123e9f34235a91f6fff0.zip chromium_src-3d9a85109e7ed1dfa267123e9f34235a91f6fff0.tar.gz chromium_src-3d9a85109e7ed1dfa267123e9f34235a91f6fff0.tar.bz2 |
Coverity: Initialize member variables.
CID=6462,16392,16996,17268,100987,101018,102401,102417,102476,102484,102513
102546,102552,102567,102617,102674,102677,102678,102679,102681,102685,
102714,102750,102751,102781
BUG=none
TEST=none
R=groby
Review URL: http://codereview.chromium.org/9005015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/p224_spake.cc | 3 | ||||
-rw-r--r-- | crypto/signature_creator_win.cc | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/crypto/p224_spake.cc b/crypto/p224_spake.cc index ec0c416..af3c2b8 100644 --- a/crypto/p224_spake.cc +++ b/crypto/p224_spake.cc @@ -99,6 +99,9 @@ P224EncryptedKeyExchange::P224EncryptedKeyExchange( PeerType peer_type, const base::StringPiece& password) : state_(kStateInitial), is_server_(peer_type == kPeerTypeServer) { + memset(&x_, 0, sizeof(x_)); + memset(&expected_authenticator_, 0, sizeof(expected_authenticator_)); + // x_ is a random scalar. base::RandBytes(x_, sizeof(x_)); diff --git a/crypto/signature_creator_win.cc b/crypto/signature_creator_win.cc index 244b06a..94fe87d 100644 --- a/crypto/signature_creator_win.cc +++ b/crypto/signature_creator_win.cc @@ -23,7 +23,7 @@ SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key) { return result.release(); } -SignatureCreator::SignatureCreator() : hash_object_(0) {} +SignatureCreator::SignatureCreator() : key_(NULL), hash_object_(0) {} SignatureCreator::~SignatureCreator() {} |