Skip to content

Commit 3ebed3d

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 3ebed3d

File tree

2 files changed

+464
-0
lines changed

2 files changed

+464
-0
lines changed

tests/fuzz/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ tests/fuzz/fuzz-sha256: LDLIBS += -lcrypto
88
tests/fuzz/fuzz-wire-*.o: tests/fuzz/wire.h
99
tests/fuzz/fuzz-bolt12-*.o: tests/fuzz/bolt12.h
1010

11+
tests/fuzz/fuzz-open_channel: common/shutdown_scriptpubkey.o \
12+
common/peer_io.o \
13+
common/peer_billboard.o \
14+
common/peer_status_wiregen.o \
15+
common/penalty_base.o \
16+
common/per_peer_state.o \
17+
common/read_peer_msg.o \
18+
common/wire_error.o \
19+
hsmd/hsmd_wiregen.o \
20+
openingd/common.o \
21+
openingd/openingd_wiregen.o
22+
1123
FUZZ_TARGETS_SRC := $(wildcard tests/fuzz/fuzz-*.c)
1224
FUZZ_TARGETS_OBJS := $(FUZZ_TARGETS_SRC:.c=.o)
1325
FUZZ_TARGETS_BIN := $(FUZZ_TARGETS_SRC:.c=)

0 commit comments

Comments
 (0)