MCPcopy Create free account
hub / github.com/ElementsProject/lightning / run

Function run

tests/fuzz/fuzz-addr.c:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void run(const uint8_t *data, size_t size)
19{
20 char *addr = encode_scriptpubkey_to_addr(tmpctx, chainparams, data, size);
21 if (addr) {
22 uint8_t *decoded_script_pubkey;
23 assert(decode_scriptpubkey_from_addr(tmpctx, chainparams, addr, &decoded_script_pubkey));
24 assert(memeq(data, size, decoded_script_pubkey, tal_bytelen(decoded_script_pubkey)));
25 }
26
27 clean_tmpctx();
28}

Callers 2

LLVMFuzzerTestOneInputFunction · 0.70
mainFunction · 0.70

Calls 5

memeqFunction · 0.85
tal_bytelenFunction · 0.85
clean_tmpctxFunction · 0.85

Tested by

no test coverage detected