diff options
author | David Schleef <ds@schleef.org> | 2003-07-24 08:49:43 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-07-24 08:49:43 +0000 |
commit | a962c0f40c1bf71b44a67f898a35122f158b6b25 (patch) | |
tree | 591c4255a1b28c76e1a0331e6648bb3f6585fad9 /ext/swfdec | |
parent | a287b1e4420e0d89ca83e1343acbbae74c8aea9b (diff) | |
download | gst-plugins-bad-a962c0f40c1bf71b44a67f898a35122f158b6b25.tar.gz gst-plugins-bad-a962c0f40c1bf71b44a67f898a35122f158b6b25.tar.bz2 gst-plugins-bad-a962c0f40c1bf71b44a67f898a35122f158b6b25.zip |
Add buffer length checks to every typefinding function
Original commit message from CVS:
Add buffer length checks to every typefinding function
Diffstat (limited to 'ext/swfdec')
-rw-r--r-- | ext/swfdec/gstswfdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/swfdec/gstswfdec.c b/ext/swfdec/gstswfdec.c index e56b9da1..a052fe7a 100644 --- a/ext/swfdec/gstswfdec.c +++ b/ext/swfdec/gstswfdec.c @@ -631,6 +631,9 @@ swf_type_find(GstBuffer *buf, gpointer private) { gchar *data = GST_BUFFER_DATA(buf); + if (GST_BUFFER_SIZE (buf) < 4) + return NULL; + if((data[0] != 'F' && data[0] != 'C') || data[1] != 'W' || data[2] != 'S')return NULL; |