Commit 7c0e60eb authored by benoit's avatar benoit

Check extradata is large enough.

Patch by Laurent Aimar fenrir \:/ via ecp fr


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16157 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 66af6a7a
...@@ -527,6 +527,11 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx) ...@@ -527,6 +527,11 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
MpegEncContext *s = avctx->priv_data; MpegEncContext *s = avctx->priv_data;
static int done=0; 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); MPV_decode_defaults(s);
s->avctx= avctx; s->avctx= avctx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment