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

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

commit 5541caa9d6b47f3a6831c224939c58700e8c8a48
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Jun 12 20:21:26 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Mon Jun 15 23:57:23 2026 +0200

    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]>
    (cherry picked from commit d133b4a231ed77f87f87280d5d6ab0482b578782)
    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 ad1b6a179a..36e39ee788 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