ffmpeg | branch: master | Paul B Mahol <one...@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);
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to