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

Git pushed a commit to branch master
in repository ffmpeg.

commit d40c1b12811814fc6c2d0816527b003d8510ea06
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Nov 3 01:22:44 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue Nov 3 04:03:22 2026 +0100

    avcodec/cljrdec: check init_get_bits8() for failure
    
    Fixes: CC4WYLNBQ75g
    Fixes: AISLE-2026-0150-00062
    Fixes: null pointer dereference
    Null pointer dereference Replicated through UnModified FFmpeg with ASAN
    (AVI file with one 2^28 byte CLJR frame)
    
    Found-by: Joshua Rogers (AISLE)
---
 libavcodec/cljrdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/cljrdec.c b/libavcodec/cljrdec.c
index 79fbea990f..ffd9f27e1a 100644
--- a/libavcodec/cljrdec.c
+++ b/libavcodec/cljrdec.c
@@ -51,7 +51,8 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *p,
     if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
         return ret;
 
-    init_get_bits(&gb, buf, buf_size * 8);
+    if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
+        return ret;
 
     for (y = 0; y < avctx->height; y++) {
         uint8_t *luma = &p->data[0][y * p->linesize[0]];

-- 
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