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) {

View file

@ -0,0 +1,23 @@
# this file is part of irssi
executable('event-get-params-fuzz',
files(
'event-get-params.c',
'../../../fe-text/module-formats.c',
),
link_with : [
libconfig_a,
libcore_a,
libirc_a,
libfuzzer_fe_common_core_a,
],
link_args : [fuzzer_lib],
include_directories : rootinc,
implicit_include_directories : false,
install : true,
dependencies : dep
)
# noinst_headers = files(
# '../../../fe-text/module-formats.h',
# )

View file

@ -0,0 +1,3 @@
# this file is part of irssi
subdir('core')