From b97ac6b3df75620bd5428204d7c45d22c6af2223 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 7 Sep 2023 09:34:00 +0200 Subject: [PATCH] avcodec/utvideodec: fix possible write past end of array --- libavcodec/utvideodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c index ab390be0fa..694896d61f 100644 --- a/libavcodec/utvideodec.c +++ b/libavcodec/utvideodec.c @@ -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);