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

Git pushed a commit to branch master
in repository ffmpeg.

commit d133b4a231ed77f87f87280d5d6ab0482b578782
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Jun 12 20:21:26 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Jun 14 21:08:21 2026 +0000

    avfilter/avf_showcwt: fix out of array read in compute_kernel
    
    Reproduced with a small output (e.g. size=2x2) under ASan.
    
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/avf_showcwt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index 13c370951a..7a1bdb88a3 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -753,7 +753,7 @@ static int compute_kernel(AVFilterContext *ctx)
             }
         }
 
-        for (int n = b; n >= a; n--) {
+        for (int n = b - 1; n >= a; n--) {
             if (tkernel[n+range] != 0.f) {
                 if (tkernel[n+range] > FLT_MIN)
                     av_log(ctx, AV_LOG_DEBUG, "out of range kernel %g\n", 
tkernel[n+range]);

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

Reply via email to