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

Git pushed a commit to branch master
in repository ffmpeg.

commit 291f96f7929f5837dc900adef3720025516e8584
Author:     zhang xingxing <[email protected]>
AuthorDate: Mon Sep 21 06:14:25 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Sep 28 15:24:01 2026 +0000

    avfilter/vf_libopencv: unmap the shape file on column overflow
    
    Fixes: memleak
    Fixes: ZbzgLVrnEIkH
    Fixes: swarm-File-mapping-leak-on-column-overflow-early-return-06d09a
---
 libavfilter/vf_libopencv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index 5552fab1b8..b8366a00c7 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -150,7 +150,8 @@ static int read_shape_from_file(int *cols, int *rows, int 
**values, const char *
             w = 0;
         } else if (w == INT_MAX) {
             av_log(log_ctx, AV_LOG_ERROR, "Overflow on the number of columns 
in the file\n");
-            return AVERROR_INVALIDDATA;
+            ret = AVERROR_INVALIDDATA;
+            goto end;
         }
         w++;
     }

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