ICU-22716 Set timeout limit for uregex_match_fuzzer

To avoid unnecessary timeout.
This commit is contained in:
Frank Tang 2024-06-20 14:57:09 -07:00 committed by Frank Yung-Fong Tang
parent 42d0bab7c3
commit 86add69c92

View file

@ -29,6 +29,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
}
std::unique_ptr<icu::RegexMatcher> regex_matcher(re->matcher(haystack, status));
if (U_SUCCESS(status)) {
regex_matcher->setTimeLimit(3000, status);
regex_matcher->find(0, status);
}
return 0;