Message ID | 20240718221606.3710874-2-michael@niedermayer.cc |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/2] avformat/mov: Check extradata in mov_read_iacb() | expand |
On Fri, Jul 19, 2024 at 12:16:06AM +0200, Michael Niedermayer wrote: > Fixes: out of array read > Fixes: poc3 > > Reported-by: VulDB CNA Team > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/pnmdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) will apply [...]
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index a6945549bd5..59013ada495 100644 --- a/libavcodec/pnmdec.c +++ b/libavcodec/pnmdec.c @@ -262,7 +262,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, AVFrame *p, break; case AV_PIX_FMT_GBRPF32: if (!s->half) { - if (avctx->width * avctx->height * 12 > s->bytestream_end - s->bytestream) + if (avctx->width * avctx->height * 12LL > s->bytestream_end - s->bytestream) return AVERROR_INVALIDDATA; scale = 1.f / s->scale; if (s->endian) {
Fixes: out of array read Fixes: poc3 Reported-by: VulDB CNA Team Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/pnmdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)