6 // Include ares internal file for DNS protocol constants
7 #include "ares_nameser.h"
9 // Entrypoint for Clang's libfuzzer, exercising query creation.
10 int LLVMFuzzerTestOneInput(const unsigned char *data,
12 // Null terminate the data.
13 char *name = malloc(size + 1);
15 memcpy(name, data, size);
17 unsigned char *buf = NULL;
19 ares_create_query(name, C_IN, T_AAAA, 1234, 0, &buf, &buflen, 1024);