mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
fuzz: Avoid timeout in blockfilter fuzz target
This commit is contained in:
parent
192a959b65
commit
fa2547fc52
1 changed files with 3 additions and 2 deletions
|
@ -36,9 +36,10 @@ FUZZ_TARGET(blockfilter)
|
||||||
(void)gcs_filter.GetEncoded();
|
(void)gcs_filter.GetEncoded();
|
||||||
(void)gcs_filter.Match(ConsumeRandomLengthByteVector(fuzzed_data_provider));
|
(void)gcs_filter.Match(ConsumeRandomLengthByteVector(fuzzed_data_provider));
|
||||||
GCSFilter::ElementSet element_set;
|
GCSFilter::ElementSet element_set;
|
||||||
while (fuzzed_data_provider.ConsumeBool()) {
|
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 30000)
|
||||||
|
{
|
||||||
element_set.insert(ConsumeRandomLengthByteVector(fuzzed_data_provider));
|
element_set.insert(ConsumeRandomLengthByteVector(fuzzed_data_provider));
|
||||||
gcs_filter.MatchAny(element_set);
|
|
||||||
}
|
}
|
||||||
|
gcs_filter.MatchAny(element_set);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue