From 1654faad38b055ec43f9e569bbd59451615f63fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 6 May 2018 11:09:45 +0200 Subject: [PATCH] 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! --- gst/typefind/gsttypefindfunctions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 84ba7ebff8..15fa3b3c82 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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