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 f9df3577ac avcodec/vqavideo: allocate the codebook zeroed
f9df3577ac is described below

commit f9df3577ac40aaee06f82f05eab8249cbab3cd33
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Sep 24 00:56:23 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 11 00:48:32 2026 +0000

    avcodec/vqavideo: allocate the codebook zeroed
    
    Fixes: use of uninitialized memory
    Fixes: Tt4RMe2vAHv6
    Fixes: trithem-vqa-cbf0-short-read-2389ec50.vqa
    Fixes: vqa-cbf0-empty-variant.vqa
    Found-by: Trithem90
---
 libavcodec/vqavideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index 99c86a4610..14caba1d02 100644
--- a/libavcodec/vqavideo.c
+++ b/libavcodec/vqavideo.c
@@ -183,7 +183,7 @@ static av_cold int vqa_decode_init(AVCodecContext *avctx)
 
     /* allocate codebooks */
     s->codebook_size = MAX_CODEBOOK_SIZE;
-    s->codebook = av_malloc(s->codebook_size);
+    s->codebook = av_mallocz(s->codebook_size);
     if (!s->codebook)
         return AVERROR(ENOMEM);
     s->next_codebook_buffer = av_malloc(s->codebook_size);

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