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

Unified Diff: chrome/browser/safe_browsing/protocol_parser.h

Issue 8873004: Fix safe-browsing sub parsing for download whitelist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/protocol_parser.h
diff --git a/chrome/browser/safe_browsing/protocol_parser.h b/chrome/browser/safe_browsing/protocol_parser.h
index d074f2ad2f1a601146bd3b18ce9038f8ac5b3d7d..3e82e0ef9ff87368a5b66a8e160aea964fd80bde 100644
--- a/chrome/browser/safe_browsing/protocol_parser.h
+++ b/chrome/browser/safe_browsing/protocol_parser.h
@@ -115,11 +115,11 @@ class SafeBrowsingProtocolParser {
std::deque<SBChunkHost>* hosts);
// Helper functions used by ParseAddChunk and ParseSubChunk.
- static void ReadHostAndPrefixCount(const char** data,
+ static bool ReadHostAndPrefixCount(const char** data,
int* remaining,
SBPrefix* host,
int* count);
- static int ReadChunkId(const char** data, int* remaining);
+ static bool ReadChunkId(const char** data, int* remaining, int* chunk_id);
static bool ReadPrefixes(
const char** data, int* remaining, SBEntry* entry, int count);
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/protocol_parser.cc » ('j') | chrome/browser/safe_browsing/protocol_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698