summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 20:53:31 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 20:53:31 +0000
commitb7f02c6a9cb5cb58af781761b34895f40d35ddf1 (patch)
tree82984c935d9aa9a51caf593de970a269d60bd7be /chrome
parent08ed00a81afc773b7bdc8dc4bec733c1bfa2eb19 (diff)
downloadchromium_src-b7f02c6a9cb5cb58af781761b34895f40d35ddf1.zip
chromium_src-b7f02c6a9cb5cb58af781761b34895f40d35ddf1.tar.gz
chromium_src-b7f02c6a9cb5cb58af781761b34895f40d35ddf1.tar.bz2
Limit Breakpad Linux to 8 url-chunk entries.
Review URL: http://codereview.chromium.org/115876 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/app/breakpad_linux.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc
index 237ed98..0a64a50 100644
--- a/chrome/app/breakpad_linux.cc
+++ b/chrome/app/breakpad_linux.cc
@@ -204,6 +204,9 @@ pid_t UploadCrashDump(const char* filename, const char* crash_url,
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];