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

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

commit b378901f4a1347c3b7fd20af744971e8afbfa970
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Aug 12 03:12:07 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Wed Aug 12 04:52:02 2026 +0200

    avcodec/lcldec: clear what the multithread chunks leave undecoded
    
    Fixes: read of uninitialized memory
    Fixes: zTrrhikJHTRR
    Found-by: Eunsoo Kim, Microsoft FORGE Labs
    (cherry picked from commit 98e45d60746e25fc4a5529bd6ffb8ae7f28f6ce8)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/lcldec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index 5023243017..ad40c58546 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -292,6 +292,8 @@ static int decode_frame(AVCodecContext *avctx, AVFrame 
*frame,
             ret = zlib_decomp(avctx, buf + 8 + mthread_inlen, len - 8 - 
mthread_inlen,
                               mthread_outlen, mthread_outlen);
             if (ret < 0) return ret;
+            memset(c->decomp_buf + mthread_outlen + ret, 0,
+                   c->decomp_size - mthread_outlen - ret);
             len = c->decomp_size;
         } else {
             int ret = zlib_decomp(avctx, buf, len, 0, c->decomp_size);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to