This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/9.1
in repository ffmpeg.

commit 2ef9a7ba305dad2290adc65431e436ccb8793c8d
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Nov 3 20:41:10 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 06:17:20 2026 +0100

    avcodec/libjxldec: return EOF after reporting a truncated codestream
    
    Regression since 2c8835dd72.
    
    Fixes: infinite loop
    Fixes: k8CycfOvfx1i
    
    Found during triage of the security report OBQVvFEd6jIZ
    
    Infinite loop Replicated through UnModified FFmpeg with a timeout
    
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit ae4bf0e32d2a0d326e93271d462e18ae74c3cd5a)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/libjxldec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/libjxldec.c b/libavcodec/libjxldec.c
index 6eb134416d..693c2b48e1 100644
--- a/libavcodec/libjxldec.c
+++ b/libavcodec/libjxldec.c
@@ -450,6 +450,7 @@ static int libjxl_receive_frame(AVCodecContext *avctx, 
AVFrame *frame)
                 /* jret set by the last iteration of the loop */
                 if (ctx->jret == JXL_DEC_NEED_MORE_INPUT && 
!ctx->frame_complete) {
                     av_log(avctx, AV_LOG_ERROR, "Unexpected end of JXL 
codestream\n");
+                    ctx->jret = JXL_DEC_ERROR;
                     return AVERROR_INVALIDDATA;
                 } else if (ctx->frame_complete) {
                     ctx->jret = JXL_DEC_SUCCESS;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to