avcodec/utvideodec: fix possible write past end of array

pull/390/head
Paul B Mahol 1 year ago
parent 9c9f48e7f2
commit b97ac6b3df
  1. 2
      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);

Loading…
Cancel
Save