| Index: chrome/common/crash_keys.cc
|
| diff --git a/chrome/common/crash_keys.cc b/chrome/common/crash_keys.cc
|
| index 0de18608c0ca775acdc8f382a8a53894b325aa53..179b1bb3281d431adf10379f9687dfef3f66c8e6 100644
|
| --- a/chrome/common/crash_keys.cc
|
| +++ b/chrome/common/crash_keys.cc
|
| @@ -280,6 +280,10 @@ void SetSwitchesFromCommandLine(const CommandLine* command_line) {
|
| if (IsBoringSwitch(switch_str))
|
| continue;
|
|
|
| + // Stop if there are too many switches.
|
| + if (i > crash_keys::kSwitchesMaxCount)
|
| + break;
|
| +
|
| std::string key = base::StringPrintf(kSwitch, key_i++);
|
| base::debug::SetCrashKeyValue(key, switch_str);
|
| }
|
|
|