Skip to content

Commit 018475e

Browse files
author
Chandra Pratap
committed
fuzz-tests: Add a test for fundee_channel()
Changelog-None: `fundee_channel()` in `openingd/openingd.c` is responsible for handling incoming `open_channel` messages from a peer. Since it deals with external input, add a test for it.
1 parent 03b4f47 commit 018475e

File tree

2 files changed

+424
-0
lines changed

2 files changed

+424
-0
lines changed

tests/fuzz/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,17 @@ 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-open_channel: common/shutdown_scriptpubkey.o \
76+
common/peer_io.o \
77+
common/peer_billboard.o \
78+
common/peer_status_wiregen.o \
79+
common/penalty_base.o \
80+
common/per_peer_state.o \
81+
common/read_peer_msg.o \
82+
common/wire_error.o \
83+
hsmd/hsmd_wiregen.o \
84+
openingd/common.o \
85+
openingd/openingd_wiregen.o
86+
7587
ALL_C_SOURCES += $(FUZZ_TARGETS_SRC) $(LIBFUZZ_SRC)
7688
ALL_FUZZ_TARGETS += $(FUZZ_TARGETS_BIN)

0 commit comments

Comments
 (0)