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

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

commit 66d96bd65e3977fee35d7be888bdd0a13f513996
Author:     ASTRA <[email protected]>
AuthorDate: Thu Apr 23 21:58:27 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun May 3 19:24:54 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 76557acb8b..465e63dd49 100644
--- a/libavformat/vividas.c
+++ b/libavformat/vividas.c
@@ -589,7 +589,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