Commit b7f02c6a authored by thestig@chromium.org's avatar thestig@chromium.org

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
parent 08ed00a8
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment