projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbf13a6
)
Make sure buffer is long enough in type_find. Attempt to fix #114580
author
David Schleef
<ds@schleef.org>
Fri, 6 Jun 2003 20:24:13 +0000
(20:24 +0000)
committer
David Schleef
<ds@schleef.org>
Fri, 6 Jun 2003 20:24:13 +0000
(20:24 +0000)
Original commit message from CVS:
Make sure buffer is long enough in type_find. Attempt to fix #114580
gst/flx/gstflxdec.c
patch
|
blob
|
history
diff --git
a/gst/flx/gstflxdec.c
b/gst/flx/gstflxdec.c
index fdddef6d74a0947de5d0efca63fbccbfcc27c2de..337d920f813b5891f4aae29cd3e240ea22d892b4 100644
(file)
--- 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) {