From 4f49072bbfac530babcd3c138ecc18f670c47818 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Wed, 18 Mar 2009 23:24:48 +0000 Subject: 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 --- chrome/browser/ssl/ssl_manager.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'chrome/browser') 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(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 -- cgit v1.1