mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
avcodec/utvideodec: fix possible write past end of array
This commit is contained in:
parent
9c9f48e7f2
commit
b97ac6b3df
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user