[FFmpeg-cvslog] avcodec/utvideodec: fix possible write past end of array
Paul B Mahol
git at videolan.org
Thu Sep 7 13:20:53 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Sep 7 09:34:00 2023 +0200| [b97ac6b3df75620bd5428204d7c45d22c6af2223] | committer: Paul B Mahol
avcodec/utvideodec: fix possible write past end of array
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b97ac6b3df75620bd5428204d7c45d22c6af2223
---
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);
More information about the ffmpeg-cvslog
mailing list