You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +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:
@@ -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++)
|
for (s->mb_x=0; s->mb_x<(avctx->width+15)/16; s->mb_x++)
|
||||||
{
|
{
|
||||||
if(tqi_decode_mb(s, t->block) < 0)
|
if(tqi_decode_mb(s, t->block) < 0)
|
||||||
break;
|
goto end;
|
||||||
tqi_idct_put(t, t->block);
|
tqi_idct_put(t, t->block);
|
||||||
}
|
}
|
||||||
|
end:
|
||||||
|
|
||||||
*data_size = sizeof(AVFrame);
|
*data_size = sizeof(AVFrame);
|
||||||
*(AVFrame*)data = t->frame;
|
*(AVFrame*)data = t->frame;
|
||||||
|
Reference in New Issue
Block a user