Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3350)

Unified Diff: chrome/browser/safe_browsing/safe_browsing_store_file.cc

Issue 368133005: Fixes for re-enabling more MSVC level 4 warnings: chrome/browser/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/safe_browsing_store_file.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_store_file.cc b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
index 01a5dc73395ced463b8b3be37e2c7e44a2d3c32c..e3f615b2cc72322d1293830ca9ef9eb95e3bf6fe 100644
--- a/chrome/browser/safe_browsing/safe_browsing_store_file.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
@@ -49,7 +49,7 @@ const uint32 kMinShardStride = 1 << 24;
const uint64 kMaxShardStride = 1ULL << 32;
// Maximum SBPrefix value.
-const SBPrefix kMaxSBPrefix = ~0;
+const SBPrefix kMaxSBPrefix = 0xFFFFFFFF;
// Header at the front of the main database file.
struct FileHeaderV8 {
@@ -968,7 +968,7 @@ bool SafeBrowsingStoreFile::DoUpdate(
// needs |in_stride|, while v7 needs to refer to header information.
base::MD5Context in_context;
int version = kInvalidVersion;
- FileHeader header;
+ FileHeader header = {0};
if (!empty_) {
DCHECK(file_.get());

Powered by Google App Engine
This is Rietveld 408576698