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

Git pushed a commit to branch master
in repository ffmpeg.

commit 1d49dc80a992b596fbe44d3d90e1d7b10b300091
Author:     Ayoub Nabil Boubagrat 
<[email protected]>
AuthorDate: Fri Aug 28 11:53:43 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Aug 31 13:42:52 2026 +0000

    avfilter/aiir: reject non-finite parameters
    
    Signed-off-by: Ayoub Nabil Boubagrat 
<[email protected]>
---
 libavfilter/af_aiir.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/libavfilter/af_aiir.c b/libavfilter/af_aiir.c
index 2111a08c51..68fd78175e 100644
--- a/libavfilter/af_aiir.c
+++ b/libavfilter/af_aiir.c
@@ -377,7 +377,7 @@ static int read_gains(AVFilterContext *ctx, char *item_str, 
int nb_items)
         }
 
         p = NULL;
-        if (av_sscanf(arg, "%lf", &s->iir[i].g) != 1) {
+        if (av_sscanf(arg, "%lf", &s->iir[i].g) != 1 || 
!isfinite(s->iir[i].g)) {
             av_log(ctx, AV_LOG_ERROR, "Invalid gains supplied: %s\n", arg);
             av_freep(&old_str);
             return AVERROR(EINVAL);
@@ -404,7 +404,7 @@ static int read_tf_coefficients(AVFilterContext *ctx, char 
*item_str, int nb_ite
             break;
 
         p = NULL;
-        if (av_sscanf(arg, "%lf", &dst[i]) != 1) {
+        if (av_sscanf(arg, "%lf", &dst[i]) != 1 || !isfinite(dst[i])) {
             av_log(ctx, AV_LOG_ERROR, "Invalid coefficients supplied: %s\n", 
arg);
             av_freep(&old_str);
             return AVERROR(EINVAL);
@@ -429,7 +429,8 @@ static int read_zp_coefficients(AVFilterContext *ctx, char 
*item_str, int nb_ite
             break;
 
         p = NULL;
-        if (av_sscanf(arg, format, &dst[i*2], &dst[i*2+1]) != 2) {
+        if (av_sscanf(arg, format, &dst[i*2], &dst[i*2+1]) != 2 ||
+            !isfinite(dst[i*2]) || !isfinite(dst[i*2+1])) {
             av_log(ctx, AV_LOG_ERROR, "Invalid coefficients supplied: %s\n", 
arg);
             av_freep(&old_str);
             return AVERROR(EINVAL);

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