fuzzer: Make critical warnings fatal

This commit is contained in:
Edward Hervey 2017-11-01 08:50:25 +01:00 committed by Edward Hervey
parent d197eaa508
commit 12ea11632b
2 changed files with 4 additions and 6 deletions

View file

@ -77,9 +77,8 @@ int LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
static gboolean initialized = 0; static gboolean initialized = 0;
if (!initialized) { if (!initialized) {
/* We want critical warnings to assert so we can fix them /* We want critical warnings to assert so we can fix them */
* But somehow it's not causing oss-fuzz to crash ... */ g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);
g_setenv ("G_DEBUG", "fatal-criticals", TRUE);
/* Only initialize and register plugins once */ /* Only initialize and register plugins once */
gst_init (NULL, NULL); gst_init (NULL, NULL);

View file

@ -53,9 +53,8 @@ LLVMFuzzerTestOneInput (const guint8 * data, size_t size)
GstState state; GstState state;
if (!initialized) { if (!initialized) {
/* We want critical warnings to assert so we can fix them /* We want critical warnings to assert so we can fix them */
* But somehow it's not causing oss-fuzz to crash ... */ g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);
g_setenv ("G_DEBUG", "fatal-criticals", TRUE);
/* Only initialize and register plugins once */ /* Only initialize and register plugins once */
gst_init (NULL, NULL); gst_init (NULL, NULL);