Skip to content

Commit

Permalink
ICU-22716 Set timeout limit for uregex_match_fuzzer
Browse files Browse the repository at this point in the history
To avoid unnecessary timeout.
  • Loading branch information
FrankYFTang committed Jun 21, 2024
1 parent 42d0bab commit 86add69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions icu4c/source/test/fuzzer/uregex_match_fuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86add69

Please sign in to comment.