From f377cebc8bb25bb9f6708adbfda567a95c296642 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Thu, 16 Oct 2008 18:05:45 +0000 Subject: 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 --- chrome/browser/safe_browsing/safe_browsing_util.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'chrome/browser') 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(to) + PrefixSize(type()); -- cgit v1.1