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

Function init

tests/fuzz/wire.h:24–30  ·  view source on GitHub ↗

The init function used by all fuzz-wire-* targets. */

Source from the content-addressed store, hash-verified

22
23/* The init function used by all fuzz-wire-* targets. */
24void init(int *argc, char ***argv)
25{
26 /* Don't call this if we're in unit-test mode, as libfuzz.c does it */
27 if (!tmpctx)
28 common_setup("fuzzer");
29 dev_towire_allow_invalid_node_id = true;
30}
31
32/* Test that decoding arbitrary data does not crash. Then, if the data was
33 * successfully decoded, test that encoding and decoding the message does not

Callers 2

LLVMFuzzerInitializeFunction · 0.70
mainFunction · 0.70

Calls 1

common_setupFunction · 0.85

Tested by

no test coverage detected