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 8cf8f179b595408610c174daedd2af39c25976b8
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon May 18 21:40:45 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 19:38:53 2026 +0200

    avformat/soxdec: Check sample_rate for nan
    
    Found-by: iceray-Li
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit d2d79dca9a36a3e89880c389161934598d62690a)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/soxdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/soxdec.c b/libavformat/soxdec.c
index d47a8ba927..d3d6b99a0c 100644
--- a/libavformat/soxdec.c
+++ b/libavformat/soxdec.c
@@ -85,7 +85,7 @@ static int sox_read_header(AVFormatContext *s)
         return AVERROR_INVALIDDATA;
     }
 
-    if (sample_rate <= 0 || sample_rate > INT_MAX) {
+    if (sample_rate <= 0 || sample_rate > INT_MAX || isnan(sample_rate)) {
         av_log(s, AV_LOG_ERROR, "invalid sample rate (%f)\n", sample_rate);
         return AVERROR_INVALIDDATA;
     }

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

Reply via email to