diff options
author | Paul Wankadia <junyer@google.com> | 2018-10-11 08:11:02 -0700 |
---|---|---|
committer | Paul Wankadia <junyer@google.com> | 2018-10-11 15:12:53 +0000 |
commit | 6272edcb53d3c8705f57df3b46b1f92e646e30bc (patch) | |
tree | 2b1533ce097e55113038d0471e85050bd1aaa638 | |
parent | 54ca2cd59219aab637e7a5e1e6d0f383a36df192 (diff) | |
download | regex-re2-6272edcb53d3c8705f57df3b46b1f92e646e30bc.tar.gz |
Dial down the fanout limits slightly.
Change-Id: I713dbb60d0b322e4d9ef49266901b192dc515bbc
Reviewed-on: https://code-review.googlesource.com/c/34210
Reviewed-by: Paul Wankadia <junyer@google.com>
-rw-r--r-- | re2/fuzzing/re2_fuzzer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/re2/fuzzing/re2_fuzzer.cc b/re2/fuzzing/re2_fuzzer.cc index 2068685..68e2c93 100644 --- a/re2/fuzzing/re2_fuzzer.cc +++ b/re2/fuzzing/re2_fuzzer.cc @@ -33,10 +33,10 @@ void Test(StringPiece pattern, const RE2::Options& options, StringPiece text) { // (They can also cause bug reports due to fuzzer timeouts.) std::map<int, int> histogram; int fanout = re.ProgramFanout(&histogram); - if (fanout > 9) + if (fanout > 8) return; int rfanout = re.ReverseProgramFanout(&histogram); - if (rfanout > 9) + if (rfanout > 8) return; StringPiece sp1, sp2, sp3, sp4; |