Commit 9ccffcd4 authored by vitor's avatar vitor

Check available size before writing in decode_frame()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14637 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 610c4029
......@@ -315,6 +315,9 @@ static int ra144_decode_frame(AVCodecContext * avctx, void *vdata,
RA144Context *ractx = avctx->priv_data;
GetBitContext gb;
if (*data_size < 2*160)
return -1;
if(buf_size < 20) {
av_log(avctx, AV_LOG_ERROR,
"Frame too small (%d bytes). Truncated file?\n", buf_size);
......
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