diff options
author | David Schleef <ds@schleef.org> | 2003-06-06 20:24:13 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-06-06 20:24:13 +0000 |
commit | b09a0f4d32357d9c9aec907c28b5d9d0a4392fef (patch) | |
tree | c106d1ae8ae6352adebec5ee5a8f843aaca0f208 | |
parent | 8aa4cadc9bc77d2ce9d353cda190771f4e41282e (diff) | |
download | gst-plugins-bad-b09a0f4d32357d9c9aec907c28b5d9d0a4392fef.tar.gz gst-plugins-bad-b09a0f4d32357d9c9aec907c28b5d9d0a4392fef.tar.bz2 gst-plugins-bad-b09a0f4d32357d9c9aec907c28b5d9d0a4392fef.zip |
Make sure buffer is long enough in type_find. Attempt to fix #114580
Original commit message from CVS:
Make sure buffer is long enough in type_find. Attempt to fix #114580
-rw-r--r-- | gst/flx/gstflxdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c index fdddef6d..337d920f 100644 --- a/gst/flx/gstflxdec.c +++ b/gst/flx/gstflxdec.c @@ -114,6 +114,10 @@ flxdec_type_find (GstBuffer *buf, gpointer private) guchar *data = GST_BUFFER_DATA(buf); GstCaps *new; + if(GST_BUFFER_SIZE(buf) < 134){ + return NULL; + } + /* check magic */ if ((data[4] == 0x11 || data[4] == 0x12 || data[4] == 0x30 || data[4] == 0x44) && data[5] == 0xaf) { |