Skip to content

Commit 76a7781

Browse files
Chandra Prataprustyrussell
authored andcommitted
fuzz-tests: Add a test for full_channel operations
Changelog-None: Functions defined in `channeld/full_channel.h` contain channel operations like `ADD_HTLC`, `FULFILL_HTLC`, `UPDATE_FEERATE`, etc. Since they are a critical part of the HTLC state machine and may be influenced by external agents, add a stateful test for them.
1 parent df3043c commit 76a7781

File tree

2 files changed

+388
-9
lines changed

2 files changed

+388
-9
lines changed

tests/fuzz/Makefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,8 @@ tests/fuzz/fuzz-hmac-sha256: LDLIBS += -lcrypto
99
tests/fuzz/fuzz-wire-*.o: tests/fuzz/wire.h
1010
tests/fuzz/fuzz-bolt12-*.o: tests/fuzz/bolt12.h
1111

12-
tests/fuzz/fuzz-handle_onion_message: common/sphinx.o \
13-
common/blindedpath.o \
14-
common/hmac.o \
15-
common/blinding.o \
16-
common/onionreply.o \
17-
common/dev_disconnect.o \
18-
common/onion_message_parse.o \
19-
connectd/onion_message.o \
20-
connectd/connectd_wiregen.o
12+
tests/fuzz/fuzz-handle_onion_message: connectd/onion_message.o connectd/connectd_wiregen.o
13+
tests/fuzz/fuzz-full_channel: channeld/full_channel.o channeld/commit_tx.o
2114

2215
FUZZ_TARGETS_SRC := $(wildcard tests/fuzz/fuzz-*.c)
2316
FUZZ_TARGETS_OBJS := $(FUZZ_TARGETS_SRC:.c=.o)

0 commit comments

Comments
 (0)