meson build support

This commit is contained in:
Ailin Nemui 2019-07-08 00:02:53 +02:00
commit db16a0a853
57 changed files with 1787 additions and 46 deletions

View file

@ -48,17 +48,21 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) {
}
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
if (size < 1) {
return 0;
}
uint8_t count = *data;
gchar *copy = g_strndup((const gchar *)data+1, size-1);
gchar *copy;
char *output0;
char *output1;
char *output2;
char *output3;
char *params;
if (size < 1) {
return 0;
}
copy = g_strndup((const gchar *)data+1, size-1);
if (count % 8 == 0) {
params = event_get_params(copy, 1 | PARAM_FLAG_GETREST, &output0);
} else if (count % 8 == 1) {