mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-22716 Set timeout limit for uregex_match_fuzzer
To avoid unnecessary timeout.
This commit is contained in:
parent
42d0bab7c3
commit
86add69c92
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue