Use int64_t for timers and mg_millis()

This commit is contained in:
Sergey Lyubka
2021-12-21 21:50:18 +00:00
parent fb0a9bc7e3
commit ae6767b1d2
15 changed files with 123 additions and 118 deletions
+2 -3
View File
@@ -27,9 +27,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
mg_mqtt_parse(data, size, &mm);
mg_mqtt_parse(NULL, 0, &mm);
struct timeval tv;
mg_sntp_parse(data, size, &tv);
mg_sntp_parse(NULL, 0, &tv);
mg_sntp_parse(data, size);
mg_sntp_parse(NULL, 0);
char buf[size * 4 / 3 + 5]; // At least 4 chars and nul termination
mg_base64_decode((char *) data, (int) size, buf);