We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 553bb3f commit c0bbf81Copy full SHA for c0bbf81
src/test/fuzz/block_header.cpp
@@ -38,4 +38,12 @@ void test_one_input(const std::vector<uint8_t>& buffer)
38
block.SetNull();
39
assert(block.GetBlockHeader().GetHash() == mut_block_header.GetHash());
40
}
41
+ {
42
+ std::optional<CBlockLocator> block_locator = ConsumeDeserializable<CBlockLocator>(fuzzed_data_provider);
43
+ if (block_locator) {
44
+ (void)block_locator->IsNull();
45
+ block_locator->SetNull();
46
+ assert(block_locator->IsNull());
47
+ }
48
49
0 commit comments