mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
Integrate oss-fuzz targets
This commit is contained in:
16
fuzzing/fuzz_key.c
Normal file
16
fuzzing/fuzz_key.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user