1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-03 05:10:03 +02:00

avcodec/utvideodec: fix possible write past end of array

This commit is contained in:
Paul B Mahol 2023-09-07 09:34:00 +02:00
parent 9c9f48e7f2
commit b97ac6b3df

View File

@ -985,7 +985,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
return AVERROR_INVALIDDATA;
}
c->buffer = av_calloc(avctx->width, c->pro?2:1);
c->buffer = av_calloc(avctx->width + 8, c->pro?2:1);
if (!c->buffer)
return AVERROR(ENOMEM);