Commit a4ed7c3f authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

qtrle: check for invalid line offset

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6d45702f
......@@ -464,6 +464,8 @@ static int qtrle_decode_frame(AVCodecContext *avctx,
stream_ptr += 4;
height = AV_RB16(&s->buf[stream_ptr]);
stream_ptr += 4;
if (height > s->avctx->height - start_line)
goto done;
} else {
start_line = 0;
height = s->avctx->height;
......
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