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

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

The following commit(s) were added to refs/heads/release/5.0 by this push:
     new 87783a03cf avfilter/af_stereowiden: Check length
87783a03cf is described below

commit 87783a03cf513e24d2a84f66c241bd6f83a43e7e
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Dec 23 04:03:01 2023 +0100
Commit:     Marvin Scholz <[email protected]>
CommitDate: Tue Oct 20 22:04:57 2026 +0000

    avfilter/af_stereowiden: Check length
    
    Fixes: out of array access
    Fixes: tickets/10746/poc13ffmpeg
    
    Found-by: Zeng Yunxiang
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 50f0f8c53c818f73fe2d752708e2fa9d2a2d8a07)
    Assisted-by: Fairy
---
 libavfilter/af_stereowiden.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/af_stereowiden.c b/libavfilter/af_stereowiden.c
index 7cce1a8f28..f1a5b108aa 100644
--- a/libavfilter/af_stereowiden.c
+++ b/libavfilter/af_stereowiden.c
@@ -74,6 +74,8 @@ static int config_input(AVFilterLink *inlink)
 
     s->length = s->delay * inlink->sample_rate / 1000;
     s->length *= 2;
+    if (s->length == 0)
+        return AVERROR(EINVAL);
     s->buffer = av_calloc(s->length, sizeof(*s->buffer));
     if (!s->buffer)
         return AVERROR(ENOMEM);

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