Skip to content
Snippets Groups Projects
Commit ac52613c authored by Laurent Aimar's avatar Laurent Aimar Committed by Benoit Fouet
Browse files

Check extradata is large enough.

Patch by Laurent Aimar fenrir \:/ via ecp fr

Originally committed as revision 16157 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 301cc4f3
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment