mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 03:03:22 -03:00
tests: Add fuzzing harness for functions in primitives/block.h
This commit is contained in:
parent
a7a6f1ff41
commit
d5a31b7cb4
1 changed files with 4 additions and 0 deletions
|
@ -62,4 +62,8 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
|||
const size_t raw_memory_size = RecursiveDynamicUsage(block);
|
||||
const size_t raw_memory_size_as_shared_ptr = RecursiveDynamicUsage(std::make_shared<CBlock>(block));
|
||||
assert(raw_memory_size_as_shared_ptr > raw_memory_size);
|
||||
CBlock block_copy = block;
|
||||
block_copy.SetNull();
|
||||
const bool is_null = block_copy.IsNull();
|
||||
assert(is_null);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue