mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-14 22:00:44 +02:00
fuzz: Avoid timeout in blockfilter fuzz target
This commit is contained in:
parent
192a959b65
commit
fa2547fc52
@ -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…
x
Reference in New Issue
Block a user