This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/6.1 in repository ffmpeg.
commit 9b5413348a0f34a922b4267c27643856a11b8752 Author: Michael Niedermayer <[email protected]> AuthorDate: Sat Feb 7 00:35:29 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Mon May 4 17:13:25 2026 +0200 avcodec/pnmdec: Check input size against width*height assuming at least 1bit per pixel Fixes: Timeout Fixes: 481427018/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PHM_DEC_fuzzer-6315469467615232 Fixes: 485843949/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PHM_DEC_fuzzer-4753439270961152 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit d707a4af8026b502ab39d3238101c8b4c4131d99) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/pnmdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index 40cc2ae868..9f24cbb5f6 100644 --- a/libavcodec/pnmdec.c +++ b/libavcodec/pnmdec.c @@ -62,6 +62,9 @@ static int pnm_decode_frame(AVCodecContext *avctx, AVFrame *p, if (avctx->skip_frame >= AVDISCARD_ALL) return avpkt->size; + if (avctx->width * avctx->height / 8 > s->bytestream_end - s->bytestream) + return AVERROR_INVALIDDATA; + if ((ret = ff_get_buffer(avctx, p, 0)) < 0) return ret; p->pict_type = AV_PICTURE_TYPE_I; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
