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;
if (!initialized) {
/* We want critical warnings to assert so we can fix them
* But somehow it's not causing oss-fuzz to crash ... */
g_setenv ("G_DEBUG", "fatal-criticals", TRUE);
/* We want critical warnings to assert so we can fix them */
g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);
/* Only initialize and register plugins once */
gst_init (NULL, NULL);

View file

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