From dde628956b256edd5ccf7fd2d16bc733a3cf7772 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 12 Jan 2020 18:56:54 +0100 Subject: [PATCH] Fuzz ws->unsubscribeAll --- fuzzing/MockedBroadcastingEchoServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fuzzing/MockedBroadcastingEchoServer.cpp b/fuzzing/MockedBroadcastingEchoServer.cpp index aebf92a..d49c969 100644 --- a/fuzzing/MockedBroadcastingEchoServer.cpp +++ b/fuzzing/MockedBroadcastingEchoServer.cpp @@ -51,7 +51,8 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { }, .close = [](auto *ws, int code, std::string_view message) { - + /* Not necessary but we'll call it for coverage */ + ws->unsubscribeAll(); } }).listen(9001, [](us_listen_socket_t *listenSocket) { if (listenSocket) {