Skip to content

Commit ca2272a

Browse files
author
Chandra Pratap
committed
fuzz-tests: Add a test for the gossipd-connectd interface
Changelon-None: `connectd_req()` in `gossipd/gossipd.c` is responsible for handling gossip messages from peers handed to it by `connectd`. Add a stateful test simulating its behaviour.
1 parent 2b8b709 commit ca2272a

File tree

2 files changed

+586
-0
lines changed

2 files changed

+586
-0
lines changed

tests/fuzz/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,21 @@ FUZZ_COMMON_OBJS := \
7272
$(FUZZ_TARGETS_OBJS): $(COMMON_HEADERS) $(WIRE_HEADERS) $(COMMON_SRC)
7373
$(FUZZ_TARGETS_BIN): $(LIBFUZZ_OBJS) $(FUZZ_COMMON_OBJS) $(BITCOIN_OBJS)
7474

75+
tests/fuzz/fuzz-gossipd-connectd: gossipd/gossmap_manage.o \
76+
gossipd/seeker.o \
77+
gossipd/gossipd_wiregen.o \
78+
gossipd/gossip_store_wiregen.o \
79+
gossipd/gossip_store.o \
80+
gossipd/queries.o \
81+
gossipd/sigcheck.o \
82+
gossipd/txout_failures.o \
83+
common/gossmap.o \
84+
common/gossip_store.o \
85+
common/gossmods_listpeerchannels.o \
86+
common/timeout.o \
87+
common/fp16.o \
88+
common/decode_array.o \
89+
connectd/connectd_gossipd_wiregen.o
90+
7591
ALL_C_SOURCES += $(FUZZ_TARGETS_SRC) $(LIBFUZZ_SRC)
7692
ALL_FUZZ_TARGETS += $(FUZZ_TARGETS_BIN)

0 commit comments

Comments
 (0)