projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
301cc4f
)
Check extradata is large enough.
author
Laurent Aimar
<fenrir@via.ecp.fr>
Mon, 15 Dec 2008 23:01:54 +0000
(23:01 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Mon, 15 Dec 2008 23:01:54 +0000
(23:01 +0000)
Patch by Laurent Aimar fenrir \:/ via ecp fr
Originally committed as revision 16157 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/rv10.c
patch
|
blob
|
history
diff --git
a/libavcodec/rv10.c
b/libavcodec/rv10.c
index
0c05147
..
ad09c07
100644
(file)
--- a/
libavcodec/rv10.c
+++ b/
libavcodec/rv10.c
@@
-527,6
+527,11
@@
static av_cold int rv10_decode_init(AVCodecContext *avctx)
MpegEncContext *s = avctx->priv_data;
static int done=0;
+ if (avctx->extradata_size < 8) {
+ av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
+ return -1;
+ }
+
MPV_decode_defaults(s);
s->avctx= avctx;