Make two icu fuzz targets more useful.

Ported from OSS-Fuzz: https://github.com/google/oss-fuzz/pull/304/files.

TBR=aizatsky@chromium.org, jshin@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2650653003 .
diff --git a/fuzzers/icu_break_iterator_fuzzer.cc b/fuzzers/icu_break_iterator_fuzzer.cc
index 3b0d336..e614758 100644
--- a/fuzzers/icu_break_iterator_fuzzer.cc
+++ b/fuzzers/icu_break_iterator_fuzzer.cc
@@ -35,10 +35,13 @@
       bi.reset(icu::BreakIterator::createTitleInstance(locale, status));
       break;
   }
-  if (U_FAILURE(status)) return 0;
+  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)) return 0;
+    if (U_FAILURE(status))
+      return 0;
 
   return 0;
 }
diff --git a/fuzzers/icu_break_iterator_utf32_fuzzer.cc b/fuzzers/icu_break_iterator_utf32_fuzzer.cc
index ba66c0a..cc840ed 100644
--- a/fuzzers/icu_break_iterator_utf32_fuzzer.cc
+++ b/fuzzers/icu_break_iterator_utf32_fuzzer.cc
@@ -37,6 +37,7 @@
   }
   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))