Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: components/password_manager/core/browser/import/csv_reader.cc

Issue 2694693002: Roll re2 dba3349..596d73e. (Closed)
Patch Set: Use unsigned literal when asserting re2::StringPiece::size() value. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | testing/libfuzzer/fuzzers/re2_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/core/browser/import/csv_reader.cc
diff --git a/components/password_manager/core/browser/import/csv_reader.cc b/components/password_manager/core/browser/import/csv_reader.cc
index 49160688e17d8c36debfe3273cc2824c9103b608..957c314055dfab2a5cb34285f9d19edb26cb2489 100644
--- a/components/password_manager/core/browser/import/csv_reader.cc
+++ b/components/password_manager/core/browser/import/csv_reader.cc
@@ -78,7 +78,7 @@ bool CSVParser::ParseNextCSVRow(std::vector<std::string>* fields) {
return false;
if (field.starts_with("\"")) {
CHECK(field.ends_with("\""));
- CHECK_GE(field.size(), 2);
+ CHECK_GE(field.size(), 2u);
field.remove_prefix(1);
field.remove_suffix(1);
}
« no previous file with comments | « DEPS ('k') | testing/libfuzzer/fuzzers/re2_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698