From e57e67057ae76db73f52ddd5480a4ea5b4bf1636 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 10 Mar 2020 12:51:23 +0000 Subject: tests: Fuzz DecodeHexBlk(...) --- src/test/fuzz/hex.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/test/fuzz/hex.cpp b/src/test/fuzz/hex.cpp index 2de6100d7b..3bbf0084c2 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 +#include #include #include #include @@ -15,6 +16,10 @@ #include #include +void initialize() { + static const ECCVerifyHandle verify_handle; +} + void test_one_input(const std::vector& buffer) { const std::string random_hex_string(buffer.begin(), buffer.end()); @@ -33,4 +38,6 @@ void test_one_input(const std::vector& buffer) } CBlockHeader block_header; (void)DecodeHexBlockHeader(block_header, random_hex_string); + CBlock block; + (void)DecodeHexBlk(block, random_hex_string); } -- cgit v1.2.3