diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 23:24:48 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 23:24:48 +0000 |
commit | 4f49072bbfac530babcd3c138ecc18f670c47818 (patch) | |
tree | 9fc960ce90b4a6794322b01e54226b521e0849ef /chrome/browser | |
parent | 378d9d2cd2db88f6f567565ad88a172bce5d806e (diff) | |
download | chromium_src-4f49072bbfac530babcd3c138ecc18f670c47818.zip chromium_src-4f49072bbfac530babcd3c138ecc18f670c47818.tar.gz chromium_src-4f49072bbfac530babcd3c138ecc18f670c47818.tar.bz2 |
Check return values for ReadInt in SSL manager
(found by Coverity)
Review URL: http://codereview.chromium.org/42369
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/ssl/ssl_manager.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/ssl/ssl_manager.cc b/chrome/browser/ssl/ssl_manager.cc index 61c10ba..f158104 100644 --- a/chrome/browser/ssl/ssl_manager.cc +++ b/chrome/browser/ssl/ssl_manager.cc @@ -762,10 +762,9 @@ bool SSLManager::DeserializeSecurityInfo(const std::string& state, Pickle pickle(state.data(), static_cast<int>(state.size())); void * iter = NULL; - pickle.ReadInt(&iter, cert_id); - pickle.ReadInt(&iter, cert_status); - pickle.ReadInt(&iter, security_bits); - return true; + return pickle.ReadInt(&iter, cert_id) && + pickle.ReadInt(&iter, cert_status) && + pickle.ReadInt(&iter, security_bits); } // static |