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

Git pushed a commit to branch master
in repository ffmpeg.

commit 5ef923d052a0d0b5087f1766af704525d500ab73
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Oct 10 08:33:13 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 18 22:43:31 2026 +0000

    avformat/vqf: reject more than two channels
    
    Fixes: Timeout
    Fixes: xYsvVfSX7ZHq
    Fixes: swarm-Integer-overflow-in-VQF-frame_bit_len-computation-3a8153
    Found-by: zhang xingxing <[email protected]>
    Suggested-by: zhang xingxing <[email protected]>
    
    Infinite loop Replicated through UnModified FFmpeg with timeout
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/vqf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/vqf.c b/libavformat/vqf.c
index fb668c16da..a83b59bcdd 100644
--- a/libavformat/vqf.c
+++ b/libavformat/vqf.c
@@ -152,7 +152,7 @@ static int vqf_read_header(AVFormatContext *s)
             rate_flag           = AV_RB32(comm_chunk + 8);
             avio_skip(s->pb, len-12);
 
-            if (st->codecpar->ch_layout.nb_channels <= 0) {
+            if (st->codecpar->ch_layout.nb_channels <= 0 || 
st->codecpar->ch_layout.nb_channels > 2) {
                 av_log(s, AV_LOG_ERROR, "Invalid number of channels\n");
                 return AVERROR_INVALIDDATA;
             }

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