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

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

commit 3152ea2d1bb2e7e2a8eb785ecf65c440d1933ae1
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Nov 6 03:52:54 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 06:17:20 2026 +0100

    avfilter/af_anlmdn: do not write past the end of a short last frame
    
    Fixes: heap-buffer-overflow
    Fixes: uQUc1sfqWcj8
    
    Found-by: Secbuddy, Tencent Keen Security Lab (tested by kvartet)
    
    Heap out of array write Replicated through UnModified FFmpeg with ASAN
    
    (cherry picked from commit 2e70a189b9025158d9db04abf6acd6692e87c797)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/af_anlmdn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_anlmdn.c b/libavfilter/af_anlmdn.c
index ce91eb1cfd..366e63cb09 100644
--- a/libavfilter/af_anlmdn.c
+++ b/libavfilter/af_anlmdn.c
@@ -219,7 +219,7 @@ static int filter_channel(AVFilterContext *ctx, void *arg, 
int ch, int nb_jobs)
     memcpy(&src[offset], in->extended_data[ch], in->nb_samples * 
sizeof(float));
     memset(&src[offset + in->nb_samples], 0, (H - in->nb_samples) * 
sizeof(float));
 
-    for (int i = S; i < H + S; i++) {
+    for (int i = S; i < in->nb_samples + S; i++) {
         float P = 0.f, Q = 0.f;
         int v = 0;
 

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