From d819df1b4c7045136b0b3fac854a497e2f6cdfb3 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 24 Jul 2003 08:49:44 +0000 Subject: [PATCH] Add buffer length checks to every typefinding function Original commit message from CVS: Add buffer length checks to every typefinding function --- gst/realmedia/rmdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c index 373cec2201..87b5e3bb96 100644 --- a/gst/realmedia/rmdemux.c +++ b/gst/realmedia/rmdemux.c @@ -201,7 +201,7 @@ realmedia_type_find (GstBuffer *buf, gpointer private) g_return_val_if_fail (data != NULL, NULL); - if(GST_BUFFER_SIZE(buf) < 8){ + if(GST_BUFFER_SIZE(buf) < 4){ return NULL; } if (strncmp (data, ".RMF", 4)==0) {