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

Unified Diff: fuzzers/icu_break_iterator_utf32_fuzzer.cc

Issue 2650653003: Make two icu fuzz targets more useful. (Closed)
Patch Set: Created 3 years, 11 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 | « fuzzers/icu_break_iterator_fuzzer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fuzzers/icu_break_iterator_utf32_fuzzer.cc
diff --git a/fuzzers/icu_break_iterator_utf32_fuzzer.cc b/fuzzers/icu_break_iterator_utf32_fuzzer.cc
index ba66c0ac279148c9d9ac3adfbd48ecebdaa2a42c..cc840ed5c10144955cfb31460df0f4d6ac0111f1 100644
--- a/fuzzers/icu_break_iterator_utf32_fuzzer.cc
+++ b/fuzzers/icu_break_iterator_utf32_fuzzer.cc
@@ -37,6 +37,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
}
if (U_FAILURE(status))
return 0;
+ bi->setText(str);
for (int32_t p = bi->first(); p != icu::BreakIterator::DONE; p = bi->next())
if (U_FAILURE(status))
« no previous file with comments | « fuzzers/icu_break_iterator_fuzzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698