diff --git a/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c b/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c index 97d5591fae..21cb48c07e 100644 --- a/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c +++ b/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c @@ -1489,6 +1489,10 @@ gst_wavparse_stream_headers (GstWavParse * wav) case GST_RIFF_TAG_LIST:{ guint32 ltag; + /* Need at least the ltag */ + if (size < 4) + goto exit; + if (wav->streaming) { const guint8 *data = NULL;