Commit 525289ed authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '57070b14'

* commit '57070b14':
  flashsv: Check diff_start diff_height values

Conflicts:
	libavcodec/flashsv.c

See: 880c73cdMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 77c33424 57070b14
...@@ -391,7 +391,9 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data, ...@@ -391,7 +391,9 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
s->diff_start = get_bits(&gb, 8); s->diff_start = get_bits(&gb, 8);
s->diff_height = get_bits(&gb, 8); s->diff_height = get_bits(&gb, 8);
if (s->diff_start + s->diff_height > cur_blk_height) { if (s->diff_start + s->diff_height > cur_blk_height) {
av_log(avctx, AV_LOG_ERROR, "Block parameters invalid\n"); av_log(avctx, AV_LOG_ERROR,
"Block parameters invalid: %d + %d > %d\n",
s->diff_start, s->diff_height, cur_blk_height);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
av_log(avctx, AV_LOG_DEBUG, av_log(avctx, AV_LOG_DEBUG,
......
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