| 22 | } |
| 23 | |
| 24 | FUZZ_TARGET_INIT(hex, initialize_hex) |
| 25 | { |
| 26 | const std::string random_hex_string(buffer.begin(), buffer.end()); |
| 27 | const std::vector<unsigned char> data = ParseHex(random_hex_string); |
| 28 | const std::string hex_data = HexStr(data); |
| 29 | if (IsHex(random_hex_string)) { |
| 30 | assert(ToLower(random_hex_string) == hex_data); |
| 31 | } |
| 32 | (void)IsHexNumber(random_hex_string); |
| 33 | uint256 result; |
| 34 | (void)ParseHashStr(random_hex_string, result); |
| 35 | (void)uint256S(random_hex_string); |
| 36 | try { |
| 37 | (void)HexToPubKey(random_hex_string); |
| 38 | } catch (const UniValue&) { |
| 39 | } |
| 40 | CBlockHeader block_header; |
| 41 | (void)DecodeHexBlockHeader(block_header, random_hex_string); |
| 42 | CBlock block; |
| 43 | (void)DecodeHexBlk(block, random_hex_string); |
| 44 | } |
nothing calls this directly
no test coverage detected