diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-09-07 09:34:00 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-09-07 12:27:34 +0200 |
commit | b97ac6b3df75620bd5428204d7c45d22c6af2223 (patch) | |
tree | af71af6942cedc78c1f8d101c0fabd7f3790fc18 | |
parent | 9c9f48e7f2d77d84428bab311aa55e59c156059c (diff) | |
download | ffmpeg-b97ac6b3df75620bd5428204d7c45d22c6af2223.tar.gz |
avcodec/utvideodec: fix possible write past end of array
-rw-r--r-- | libavcodec/utvideodec.c | 2 |
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); |