Commit b8508d27 authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

tests: Add a test-pseudotcp-fuzzy test for fuzzing PseudoTcpSocket

As documented at the top of the file, this creates two PseudoTcpSockets
in a loopback configuration, and mutates the raw packets which are sent
between them, hoping to cause assertion failures and illegal memory
accesses in the pseudotcp code.

Best run under Valgrind or GDB.
parent 1d796cfa
......@@ -142,6 +142,7 @@ tests/test-send-recv
tests/test-mainloop
tests/test-priority
tests/test-pseudotcp
tests/test-pseudotcp-fuzzy
tests/test-restart
tests/test-thread
tests/test-new-dribble
......
......@@ -22,6 +22,7 @@ COMMON_LDADD = $(top_builddir)/agent/libagent.la $(top_builddir)/socket/libsocke
check_PROGRAMS = \
test-pseudotcp \
test-pseudotcp-fuzzy \
test-bsd \
test \
test-address \
......@@ -52,6 +53,8 @@ noinst_HEADERS = test-io-stream-common.h
test_pseudotcp_LDADD = $(COMMON_LDADD)
test_pseudotcp_fuzzy_LDADD = $(COMMON_LDADD) -lm
test_bsd_LDADD = $(COMMON_LDADD)
test_LDADD = $(COMMON_LDADD)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment