Integrate oss-fuzz targets

This commit is contained in:
pdknsk
2018-10-11 00:02:03 +00:00
committed by Philip Withnall
parent 6c8b9f31b1
commit a2c09f57f6
13 changed files with 268 additions and 0 deletions

16
fuzzing/fuzz_key.c Normal file
View File

@@ -0,0 +1,16 @@
#include "fuzz.h"
int
LLVMFuzzerTestOneInput (const unsigned char *data, size_t size)
{
GKeyFile *key = NULL;
fuzz_set_logging_func ();
key = g_key_file_new ();
g_key_file_load_from_data (key, (const gchar*) data, size, G_KEY_FILE_NONE,
NULL);
g_key_file_free (key);
return 0;
}