Skip to content

Commit 65ec58c

Browse files
committed
fuzz: drop size limit again
The fuzzer keeps finding regexes that just fit into the limit, have a Unicode word boundary assertion and gives a decent sized haystack. This in turn results in slowish searches. The searches are horrificly slow, but they become much slower with the sanitizers enabled it looks like. So... drop the size limit down even more.
1 parent a3978b2 commit 65ec58c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzz/fuzz_targets/fuzz_regex_match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fuzz_target!(|data: &[u8]| {
1515
if let Some((char_index, _)) = char_index {
1616
let (pattern, input) = data.split_at(char_index);
1717
let result =
18-
regex::RegexBuilder::new(pattern).size_limit(1 << 20).build();
18+
regex::RegexBuilder::new(pattern).size_limit(1 << 18).build();
1919
if let Ok(re) = result {
2020
re.is_match(input);
2121
}

0 commit comments

Comments
 (0)