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

Function create_fuzz_msg

tests/fuzz/fuzz-open_channel.c:309–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309static u8 *create_fuzz_msg(const tal_t *ctx)
310{
311 u8 *msg = tal_arr(ctx, u8, 0);
312 u8 msg_len = fromwire_u16(cursor, max);
313 if (msg_len > *max)
314 msg_len = *max;
315 towire_u8_array(&msg, *cursor, msg_len);
316 return msg;
317}
318
319static struct state *fromwire_new_state(const tal_t *ctx)
320{

Callers 2

test_sync_readFunction · 0.85
runFunction · 0.85

Calls 2

fromwire_u16Function · 0.50
towire_u8_arrayFunction · 0.50

Tested by 1

test_sync_readFunction · 0.68