mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 09:15:04 +02:00
net: remove is{Empty,Full} flags from CBloomFilter, clarify CVE fix
This commit is contained in:
@@ -25,7 +25,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
||||
fuzzed_data_provider.ConsumeIntegral<unsigned int>(),
|
||||
static_cast<unsigned char>(fuzzed_data_provider.PickValueInArray({BLOOM_UPDATE_NONE, BLOOM_UPDATE_ALL, BLOOM_UPDATE_P2PUBKEY_ONLY, BLOOM_UPDATE_MASK}))};
|
||||
while (fuzzed_data_provider.remaining_bytes() > 0) {
|
||||
switch (fuzzed_data_provider.ConsumeIntegralInRange(0, 4)) {
|
||||
switch (fuzzed_data_provider.ConsumeIntegralInRange(0, 3)) {
|
||||
case 0: {
|
||||
const std::vector<unsigned char> b = ConsumeRandomLengthByteVector(fuzzed_data_provider);
|
||||
(void)bloom_filter.contains(b);
|
||||
@@ -65,9 +65,6 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
||||
(void)bloom_filter.IsRelevantAndUpdate(tx);
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
bloom_filter.UpdateEmptyFull();
|
||||
break;
|
||||
}
|
||||
(void)bloom_filter.IsWithinSizeConstraints();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user