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

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

commit 4ee9811ef0651d17214170315ddf727e259c7df7
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Feb 6 23:44:40 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Mon May 4 17:13:17 2026 +0200

    avformat/iff: Error out with 0 channel loudspeaker configuration
    
    Fixes: division by 0
    Fixes: 
478005965/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-5748337088462848
    Fixes: 
472226169/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-4528777763028992
    
    Found-by:  continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 9bfa1635aef08e777deaeeae15ff9a5ade412188)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/iff.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/iff.c b/libavformat/iff.c
index 5bddf049bb..96e8c39506 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -338,8 +338,10 @@ static int parse_dsd_prop(AVFormatContext *s, AVStream 
*st, uint64_t eof)
             if (config != 0xFFFF) {
                 if (config < FF_ARRAY_ELEMS(dsd_loudspeaker_config))
                     st->codecpar->ch_layout = dsd_loudspeaker_config[config];
-                if (!st->codecpar->ch_layout.nb_channels)
+                if (!st->codecpar->ch_layout.nb_channels) {
                     avpriv_request_sample(s, "loudspeaker configuration %d", 
config);
+                    return AVERROR_PATCHWELCOME;
+                }
             }
             break;
         }

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

Reply via email to