7.0 refactor

This commit is contained in:
cpq committed 2020-12-05 11:26:32 +00:00
1 parent 34d4fb8cf0
commit f2fba1d200
838 files changed
+14236 -255316

No files matched your search

+13 -3
View File
@@ -1,8 +1,18 @@
#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);
struct mg_dns_message dm;
mg_dns_parse(data, size, &dm);
struct mg_http_message hm;
mg_http_parse((const char *) data, size, &hm);
struct mg_mqtt_message mm;
mg_mqtt_parse(data, size, &mm);
struct timeval tv;
mg_sntp_parse(data, size, &tv);
return 0;
}