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

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

commit 26439c38787e0acfae3271cbac5f66dd360d03ea
Author:     ASTRA <[email protected]>
AuthorDate: Thu Apr 23 21:58:27 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue May 5 18:55:12 2026 +0200

    avformat/vividas: use-of-uninitialized-value in keybuffer
    
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 26732641fb6efae821baa2bdd929e2b8a189219c)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/vividas.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/vividas.c b/libavformat/vividas.c
index 72fbca5d45..4a2a5e1958 100644
--- a/libavformat/vividas.c
+++ b/libavformat/vividas.c
@@ -582,7 +582,9 @@ static int viv_read_header(AVFormatContext *s)
         block_type = avio_r8(pb);
 
         if (block_type == 22) {
-            avio_read(pb, keybuffer, 187);
+            ret = ffio_read_size(pb, keybuffer, 187);
+            if (ret < 0)
+                return ret;
             b22_key = decode_key(keybuffer);
             b22_size = avio_rl32(pb);
         }

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

Reply via email to