mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +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;
|
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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue