Get rid of MG_ENABLE_LOG, change mg_hexdump()

This commit is contained in:
Sergey Lyubka
2022-05-06 21:09:13 +01:00
parent 6db0485c7b
commit bc16854ccb
13 changed files with 117 additions and 167 deletions
+2 -3
View File
@@ -7,6 +7,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *, size_t);
#endif
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
mg_log_set("0");
struct mg_dns_message dm;
mg_dns_parse(data, size, &dm);
mg_dns_parse(NULL, 0, &dm);
@@ -36,9 +38,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
mg_base64_encode(data, (int) size, buf);
mg_base64_encode(NULL, 0, buf);
char *hexdump = mg_hexdump(data, size);
free(hexdump);
mg_globmatch((char *) data, size, (char *) data, size);
struct mg_str k, v, s = mg_str_n((char *) data, size);