summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
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];