mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
typefindfunctions: fix tap typefinder
If we memcmp() 12 bytes we should make sure to get at least 12 bytes as well, and not just 8 bytes. Thanks oss-fuzz!
This commit is contained in:
parent
e367d3e812
commit
1654faad38
1 changed files with 1 additions and 1 deletions
|
@ -5250,7 +5250,7 @@ static GstStaticCaps tap_caps = GST_STATIC_CAPS ("audio/x-tap-tap");
|
|||
static void
|
||||
tap_type_find (GstTypeFind * tf, gpointer unused)
|
||||
{
|
||||
const guint8 *data = gst_type_find_peek (tf, 0, 8);
|
||||
const guint8 *data = gst_type_find_peek (tf, 0, 16);
|
||||
|
||||
if (data) {
|
||||
if (memcmp (data, "C64-TAPE-RAW", 12) == 0
|
||||
|
|
Loading…
Reference in a new issue