aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-09-07 09:34:00 +0200
committerPaul B Mahol <onemda@gmail.com>2023-09-07 12:27:34 +0200
commitb97ac6b3df75620bd5428204d7c45d22c6af2223 (patch)
treeaf71af6942cedc78c1f8d101c0fabd7f3790fc18
parent9c9f48e7f2d77d84428bab311aa55e59c156059c (diff)
downloadffmpeg-b97ac6b3df75620bd5428204d7c45d22c6af2223.tar.gz
avcodec/utvideodec: fix possible write past end of array
-rw-r--r--libavcodec/utvideodec.c2
1 files changed, 1 insertions, 1 deletions
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);