Fuzz with 3kb, 8kb
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user