Revision 153ac4c82a98d8b51b821d693ba8a570040acb57 authored by Sebastian Dröge on 25 August 2019, 17:10:45 UTC, committed by Emmanuel Fleury on 25 August 2019, 17:31:48 UTC
Closes issue #512
1 parent 1f79c7f
fuzz.h
#include "gio/gio.h"
#include "glib/glib.h"
int LLVMFuzzerTestOneInput (const unsigned char *data, size_t size);
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
static GLogWriterOutput
empty_logging_func (GLogLevelFlags log_level, const GLogField *fields,
gsize n_fields, gpointer user_data)
{
return G_LOG_WRITER_HANDLED;
}
#endif
/* Disables logging for oss-fuzz. Must be used with each target. */
static void
fuzz_set_logging_func (void)
{
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
g_log_set_writer_func (empty_logging_func, NULL, NULL);
#endif
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...