mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/vcr1: Fix bitstream input size check
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
55ae13e3de
commit
77ef538818
@ -55,7 +55,7 @@ static int vcr1_decode_frame(AVCodecContext *avctx, void *data,
|
||||
const uint8_t *bytestream_end = bytestream + avpkt->size;
|
||||
int i, x, y, ret;
|
||||
|
||||
if(avpkt->size < 16 + avctx->height + avctx->width*avctx->height*5/8){
|
||||
if(avpkt->size < 32 + avctx->height + avctx->width*avctx->height*5/8){
|
||||
av_log(avctx, AV_LOG_ERROR, "Insufficient input data.\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user