mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
fuzzer: Make critical warnings fatal
This commit is contained in:
parent
d197eaa508
commit
12ea11632b
2 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue