This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit abb02470172534e38271ad6e6e658bde92f4a368 Author: Ramiro Polla <[email protected]> AuthorDate: Mon Oct 6 12:33:34 2025 +0200 Commit: Ramiro Polla <[email protected]> CommitDate: Mon Jan 5 13:14:15 2026 +0000 avcodec/mjpegdec: improve check for length in ff_mjpeg_decode_dqt() --- libavcodec/mjpegdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index c347825c37..2485591aab 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -208,6 +208,8 @@ int ff_mjpeg_decode_dqt(MJpegDecodeContext *s) av_log(s->avctx, AV_LOG_ERROR, "dqt: invalid precision\n"); return AVERROR_INVALIDDATA; } + if (len < (1 + 64 * (1+pr))) + return AVERROR_INVALIDDATA; index = get_bits(&s->gb, 4); if (index >= 4) return AVERROR_INVALIDDATA; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
