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

Unified Diff: chrome/app/breakpad_linux.cc

Issue 115876: Limit Breakpad Linux to 8 url-chunk entries. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/breakpad_linux.cc
===================================================================
--- chrome/app/breakpad_linux.cc (revision 17108)
+++ chrome/app/breakpad_linux.cc (working copy)
@@ -204,6 +204,9 @@
if (crash_url_length) {
unsigned i = 0, done = 0;
static const unsigned kMaxCrashChunkSize = 64;
+ static const unsigned kMaxUrlLength = 8 * kMaxCrashChunkSize;
+ if (crash_url_length > kMaxUrlLength)
+ crash_url_length = kMaxUrlLength;
while (crash_url_length) {
char num[16];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698