projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec0c874
)
mpeg4videoparse: avoid crash if vos < 5 bytes.
author
Michael Smith
<msmith@songbirdnest.com>
Wed, 6 Jan 2010 19:20:06 +0000
(11:20 -0800)
committer
Michael Smith
<msmith@songbirdnest.com>
Wed, 6 Jan 2010 19:20:41 +0000
(11:20 -0800)
gst/mpeg4videoparse/mpeg4videoparse.c
patch
|
blob
|
history
diff --git
a/gst/mpeg4videoparse/mpeg4videoparse.c
b/gst/mpeg4videoparse/mpeg4videoparse.c
index 93795d04d2824883171534987c3ff7a32c203fc2..c5463b5e4681b86598f09d2caadb5a95c63180c6 100644
(file)
--- a/
gst/mpeg4videoparse/mpeg4videoparse.c
+++ b/
gst/mpeg4videoparse/mpeg4videoparse.c
@@
-358,6
+358,9
@@
gst_mpeg4vparse_handle_vos (GstMpeg4VParse * parse, const guint8 * data,
gboolean equal;
bitstream_t bs = { data, 0, 0, size };
+ if (size < 5)
+ goto failed;
+
/* Parse the config from the VOS frame */
bs.offset = 5;