This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 98e45d6074 avcodec/lcldec: clear what the multithread chunks leave
undecoded
98e45d6074 is described below
commit 98e45d60746e25fc4a5529bd6ffb8ae7f28f6ce8
Author: Michael Niedermayer <[email protected]>
AuthorDate: Wed Aug 12 03:12:07 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Wed Aug 12 02:50:23 2026 +0000
avcodec/lcldec: clear what the multithread chunks leave undecoded
Fixes: read of uninitialized memory
Fixes: zTrrhikJHTRR
Found-by: Eunsoo Kim, Microsoft FORGE Labs
---
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]