mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-30 13:58:19 +01:00
Integrate oss-fuzz targets
This commit is contained in:
15
fuzzing/fuzz_bookmark.c
Normal file
15
fuzzing/fuzz_bookmark.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "fuzz.h"
|
||||
|
||||
int
|
||||
LLVMFuzzerTestOneInput (const unsigned char *data, size_t size)
|
||||
{
|
||||
GBookmarkFile *bookmark = NULL;
|
||||
|
||||
fuzz_set_logging_func ();
|
||||
|
||||
bookmark = g_bookmark_file_new ();
|
||||
g_bookmark_file_load_from_data (bookmark, (const gchar*) data, size, NULL);
|
||||
|
||||
g_bookmark_file_free (bookmark);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user