From 6c8459608c2d84eaa04b70cfcde7451b6cbc02c3 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Tue, 16 Feb 2021 18:42:56 +0100 Subject: [PATCH] Remove broken and useless fuzz target --- fuzzing/Handshake.cpp | 20 -------------------- fuzzing/Makefile | 3 --- 2 files changed, 23 deletions(-) delete mode 100644 fuzzing/Handshake.cpp diff --git a/fuzzing/Handshake.cpp b/fuzzing/Handshake.cpp deleted file mode 100644 index 16719f5..0000000 --- a/fuzzing/Handshake.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/* This is a fuzz test of the websocket handshake generator */ - -#define WIN32_EXPORT - -#include -#include - -/* We test the websocket handshake generator */ -#include "../src/WebSocketHandshake.h" - -extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { - - char output[28]; - if (size >= 24) { - uWS::WebSocketHandshake::generate((char *) data, output); - } - - return 0; -} - diff --git a/fuzzing/Makefile b/fuzzing/Makefile index 3e32d1d..381f2a2 100644 --- a/fuzzing/Makefile +++ b/fuzzing/Makefile @@ -30,6 +30,3 @@ oss-fuzz: $(CXX) $(CXXFLAGS) -Izlib -std=c++17 -O3 PerMessageDeflate.cpp -o $(OUT)/PerMessageDeflate $(LIB_FUZZING_ENGINE) zlib/libz.a $(CXX) $(CXXFLAGS) -std=c++17 -O3 TopicTree.cpp -o $(OUT)/TopicTree $(LIB_FUZZING_ENGINE) -broken: -# Too small tests, failing coverage test - $(CXX) $(CXXFLAGS) -std=c++17 -O3 Handshake.cpp -o $(OUT)/Handshake $(LIB_FUZZING_ENGINE)