make two icu fuzz targets more useful (#304)

This commit is contained in:
Kostya Serebryany 2017-01-20 17:40:14 -08:00 committed by Oliver Chang
parent 8b1c72c8cd
commit f1d0beed71
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
break;
}
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;

View File

@ -38,6 +38,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))