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

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

commit cfa2d291ef9a0cd1769a4a07393499e8e03997dd
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Feb 6 23:44:40 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Mon May 4 15:57:07 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 82d31811a9..83549f1a0a 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -340,8 +340,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