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

Unified Diff: net/disk_cache/simple/simple_disk_format.h

Issue 14204002: Remove some uninitialized reads from simple cache metadata serializer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: more memset goodness Created 7 years, 8 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
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_disk_format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_disk_format.h
diff --git a/net/disk_cache/simple/simple_disk_format.h b/net/disk_cache/simple/simple_disk_format.h
index 18dfe9661ad00402c6407254dc58e831d4e48e33..062ff13bbd64237f4ea0d998d676a52a469d2b5b 100644
--- a/net/disk_cache/simple/simple_disk_format.h
+++ b/net/disk_cache/simple/simple_disk_format.h
@@ -53,6 +53,7 @@ std::string GetEntryHashForKey(const std::string& key);
namespace SimpleIndexFile {
// Simple Index File metadata is defined here.
struct Header {
+ Header();
uint64 initial_magic_number;
uint32 version;
uint64 number_of_entries;
@@ -89,6 +90,7 @@ namespace SimpleIndexFile {
const size_t kEntryMetadataSize = sizeof(EntryMetadata);
struct Footer {
+ Footer();
uint32 crc;
};
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_disk_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698