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

Function run

tests/fuzz/fuzz-descriptor_checksum.c:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10void run(const uint8_t *data, size_t size)
11{
12 char *string;
13 struct descriptor_checksum checksum;
14
15 /* We should not crash nor overflow the checksum buffer. */
16
17 string = to_string(NULL, data, size);
18 descriptor_checksum(string, tal_count(string), &checksum);
19 tal_free(string);
20}

Callers

nothing calls this directly

Calls 3

tal_freeFunction · 0.85
to_stringFunction · 0.70
descriptor_checksumClass · 0.70

Tested by

no test coverage detected