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

Unified Diff: chrome/browser/sync/sessions/sessions_sync_manager.h

Issue 495593003: Avoid memory corruption in sessions sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/sync/sessions/sessions_sync_manager.h
diff --git a/chrome/browser/sync/sessions/sessions_sync_manager.h b/chrome/browser/sync/sessions/sessions_sync_manager.h
index c92c58873f17c564c019c2ad4d99207586174289..92dc1e67cf2aceb844b2789dd9d2bb8a050fac53 100644
--- a/chrome/browser/sync/sessions/sessions_sync_manager.h
+++ b/chrome/browser/sync/sessions/sessions_sync_manager.h
@@ -323,6 +323,10 @@ class SessionsSyncManager : public syncer::SyncableService,
// See |local_tab_pool_out_of_sync_|.
void RebuildAssociations();
+ // Validates the content of a SessionHeader protobuf.
+ // Returns false if validation fails.
+ static bool IsValidSessionHeader(const sync_pb::SessionHeader& header);
+
// Mapping of current open (local) tabs to their sync identifiers.
TabLinksMap local_tab_map_;
« no previous file with comments | « chrome/browser/sync/glue/synced_session_tracker.cc ('k') | chrome/browser/sync/sessions/sessions_sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698