Fuzz with 3kb, 8kb

This commit is contained in:
Alex Hultman
2020-07-02 03:25:05 +02:00
parent 8dfabd559d
commit f397a2f89c
2 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) {
/* Very simple WebSocket echo server */ /* Very simple WebSocket echo server */
app = new uWS::TemplatedApp<false>(uWS::App().ws<PerSocketData>("/*", { app = new uWS::TemplatedApp<false>(uWS::App().ws<PerSocketData>("/*", {
/* Settings */ /* Settings */
.compression = uWS::DEDICATED_COMPRESSOR_3KB, .compression = uWS::DEDICATED_COMPRESSOR_8KB,
/* We want this to be low so that we can hit it, yet bigger than 256 */ /* We want this to be low so that we can hit it, yet bigger than 256 */
.maxPayloadLength = 300, .maxPayloadLength = 300,
.idleTimeout = 10, .idleTimeout = 10,
+1 -1
View File
@@ -14,7 +14,7 @@ struct StaticData {
uWS::ZlibContext zlibContext; uWS::ZlibContext zlibContext;
uWS::InflationStream inflationStream; uWS::InflationStream inflationStream;
uWS::DeflationStream deflationStream = uWS::DEDICATED_COMPRESSOR_8KB; uWS::DeflationStream deflationStream = uWS::DEDICATED_COMPRESSOR_3KB;
} staticData; } staticData;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {