From a962c0f40c1bf71b44a67f898a35122f158b6b25 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 24 Jul 2003 08:49:43 +0000 Subject: Add buffer length checks to every typefinding function Original commit message from CVS: Add buffer length checks to every typefinding function --- gst/modplug/gstmodplug.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gst/modplug') diff --git a/gst/modplug/gstmodplug.cc b/gst/modplug/gstmodplug.cc index 9270938b..2fa602f7 100644 --- a/gst/modplug/gstmodplug.cc +++ b/gst/modplug/gstmodplug.cc @@ -132,6 +132,9 @@ static GstElementClass *parent_class = NULL; static GstCaps* modplug_type_find (GstBuffer *buf, gpointer priv) { + if (GST_BUFFER_SIZE (buf) < 75) + return NULL; + if (MOD_CheckType (buf) || Mod_669_CheckType (buf) || Amf_CheckType (buf) || -- cgit v1.2.1