mirror of https://github.com/google/oss-fuzz.git
make two icu fuzz targets more useful (#304)
This commit is contained in:
parent
8b1c72c8cd
commit
f1d0beed71
|
@ -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;
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue