1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-10 01:30:21 +02:00

eatqi: replace break by goto.

This fixes some heap overread.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-03-23 00:27:59 +01:00
parent 5a4af049b1
commit 7c0748c2db

View File

@ -139,9 +139,10 @@ static int tqi_decode_frame(AVCodecContext *avctx,
for (s->mb_x=0; s->mb_x<(avctx->width+15)/16; s->mb_x++)
{
if(tqi_decode_mb(s, t->block) < 0)
break;
goto end;
tqi_idct_put(t, t->block);
}
end:
*data_size = sizeof(AVFrame);
*(AVFrame*)data = t->frame;