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

Unified Diff: chrome/common/chrome_constants.h

Issue 523088: Avoid accepting suspiciously long URLs from the renderer. These can take down... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | chrome/common/chrome_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_constants.h
===================================================================
--- chrome/common/chrome_constants.h (revision 35352)
+++ chrome/common/chrome_constants.h (working copy)
@@ -67,8 +67,12 @@
extern const int kStatsMaxCounters;
// The maximum number of characters of the document's title that we're willing
-// to send to the browser process.
+// to accept in the browser process.
extern const size_t kMaxTitleChars;
+// The maximum number of characters in the URL that we're willing to accept
+// in the browser process. It is set low enough to avoid damage to the browser
+// but high enough that a web site can abuse location.hash for a little storage.
+extern const size_t kMaxURLChars;
extern const bool kRecordModeEnabled;
« no previous file with comments | « no previous file | chrome/common/chrome_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698