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

Function run

tests/fuzz/fuzz-bolt11.c:218–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void run(const uint8_t *data, size_t size)
219{
220 char *invoice_str = to_string(tmpctx, data, size);
221 const char *fail = NULL;
222
223 struct bolt11 *b11 = bolt11_decode(tmpctx, invoice_str, NULL, NULL, NULL, &fail);
224 if (b11)
225 bolt11_encode(tmpctx, b11, false, test_sign, NULL);
226 else
227 assert(fail);
228
229 clean_tmpctx();
230}

Callers

nothing calls this directly

Calls 3

bolt11_decodeFunction · 0.85
clean_tmpctxFunction · 0.85
to_stringFunction · 0.70

Tested by

no test coverage detected