-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuzz: compile fuzzer in release mode
Otherwise, it's pretty easy to generate regexes that are under the size limit but take longer than the 60 second timeout in the fuzzer. This is in response to this bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26324 Actual fuzz test output: https://oss-fuzz.com/testcase-detail/5673225499181056
- Loading branch information
1 parent
d5bf98f
commit 9067dfd
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// These tests are only run for the "default" test target because some of them | ||
// can take quite a long time. Some of them take long enough that it's not | ||
// practical to run them in debug mode. :-/ | ||
|
||
// See: https://oss-fuzz.com/testcase-detail/5673225499181056 | ||
// | ||
// Ignored by default since it takes too long in debug mode (almost a minute). | ||
#[test] | ||
#[ignore] | ||
fn fuzz1() { | ||
regex!(r"1}{55}{0}*{1}{55}{55}{5}*{1}{55}+{56}|;**"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters