Index: tools/ipc_fuzzer/fuzzer/fuzzer_main.cc |
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc b/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc |
index b92e44aa8e56b3207f47ef707c68be3a8fa73839..6bd2f3bba5bac3d1be2c7ca5fcda6c53b2db6538 100644 |
--- a/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc |
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc |
@@ -159,8 +159,8 @@ int Mutate(base::CommandLine* cmd, Fuzzer* fuzzer) { |
bool permute = cmd->HasSwitch(kPermuteSwitch); |
std::string type_string_list = cmd->GetSwitchValueASCII(kTypeListSwitch); |
- std::vector<std::string> type_string_vector; |
- base::SplitString(type_string_list, ',', &type_string_vector); |
+ std::vector<std::string> type_string_vector = base::SplitString( |
+ type_string_list, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
std::set<uint32> type_set; |
for (size_t i = 0; i < type_string_vector.size(); ++i) { |
type_set.insert(atoi(type_string_vector[i].c_str())); |