diff options
| author | practicalswift <[email protected]> | 2020-03-10 12:51:23 +0000 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2020-03-11 12:51:26 +0000 |
| commit | e57e67057ae76db73f52ddd5480a4ea5b4bf1636 (patch) | |
| tree | afcfda5689d47d9d8eb9cf26238dd04c2a8e49af /src/test/fuzz/hex.cpp | |
| parent | tests: Fuzz RecursiveDynamicUsage(const std::shared_ptr<X>& p) (diff) | |
| download | discoin-e57e67057ae76db73f52ddd5480a4ea5b4bf1636.tar.xz discoin-e57e67057ae76db73f52ddd5480a4ea5b4bf1636.zip | |
tests: Fuzz DecodeHexBlk(...)
Diffstat (limited to 'src/test/fuzz/hex.cpp')
| -rw-r--r-- | src/test/fuzz/hex.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/fuzz/hex.cpp b/src/test/fuzz/hex.cpp index 2de6100d7..3bbf0084c 100644 --- a/src/test/fuzz/hex.cpp +++ b/src/test/fuzz/hex.cpp @@ -3,6 +3,7 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <core_io.h> +#include <pubkey.h> #include <primitives/block.h> #include <rpc/util.h> #include <test/fuzz/fuzz.h> @@ -15,6 +16,10 @@ #include <string> #include <vector> +void initialize() { + static const ECCVerifyHandle verify_handle; +} + void test_one_input(const std::vector<uint8_t>& buffer) { const std::string random_hex_string(buffer.begin(), buffer.end()); @@ -33,4 +38,6 @@ void test_one_input(const std::vector<uint8_t>& buffer) } CBlockHeader block_header; (void)DecodeHexBlockHeader(block_header, random_hex_string); + CBlock block; + (void)DecodeHexBlk(block, random_hex_string); } |