mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
indeo4: Fix global array overread.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5cddfc58d8
commit
8a20774a24
@ -404,6 +404,10 @@ static int decode_band_hdr(IVI4DecContext *ctx, IVIBandDesc *band,
|
|||||||
av_log(avctx, AV_LOG_ERROR, "Custom quant matrix encountered!\n");
|
av_log(avctx, AV_LOG_ERROR, "Custom quant matrix encountered!\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
if (band->quant_mat > 21) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Invalid quant matrix encountered!\n");
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* decode block huffman codebook */
|
/* decode block huffman codebook */
|
||||||
|
Loading…
Reference in New Issue
Block a user