diff --git a/test/fuzz.c b/test/fuzz.c new file mode 100644 index 00000000..7a9b0df6 --- /dev/null +++ b/test/fuzz.c @@ -0,0 +1,8 @@ +#include "mongoose.h" + +int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { + struct http_message req; + mg_parse_http((const char *) data, size, &req, 0); + mg_parse_http((const char *) data, size, &req, 1); + return 0; +}