Skip to content

Commit

Permalink
lite: tweak nest limit on stack overflow test
Browse files Browse the repository at this point in the history
It looks like the default nest limit is maybe a little big in some
environments? So shrink it down more.
  • Loading branch information
BurntSushi committed Oct 14, 2023
1 parent cd79881 commit 29ca52c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion regex-lite/tests/fuzz/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ fn captures_wrong_order_min() {
#[test]
fn many_zero_to_many_reps() {
let pat = format!(".{}", "*".repeat(1 << 15));
let Ok(re) = regex_lite::RegexBuilder::new(&pat).build() else { return };
let Ok(re) = regex_lite::RegexBuilder::new(&pat).nest_limit(10).build()
else {
return;
};
re.is_match("");
}

Expand Down

0 comments on commit 29ca52c

Please sign in to comment.