summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 18:05:45 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 18:05:45 +0000
commitf377cebc8bb25bb9f6708adbfda567a95c296642 (patch)
tree5f31bd750cdc60e02fb5beb4c336f4e1f69a9c65 /chrome/browser
parent4350ec4198983c0075cab9487d16824c753ba66a (diff)
downloadchromium_src-f377cebc8bb25bb9f6708adbfda567a95c296642.zip
chromium_src-f377cebc8bb25bb9f6708adbfda567a95c296642.tar.gz
chromium_src-f377cebc8bb25bb9f6708adbfda567a95c296642.tar.bz2
Return without doing anything instead of dereferencing junk in unexpected cases.
Review URL: http://codereview.chromium.org/7416 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3470 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_util.cc b/chrome/browser/safe_browsing/safe_browsing_util.cc
index 23effa5..b7cf098 100644
--- a/chrome/browser/safe_browsing/safe_browsing_util.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_util.cc
@@ -252,6 +252,7 @@ void SBEntry::RemovePrefix(int index) {
break;
default:
NOTREACHED();
+ return;
}
char* from = reinterpret_cast<char*>(to) + PrefixSize(type());