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

Git pushed a commit to branch master
in repository ffmpeg.

commit a8ba973e1aef3eafbf1422ebba9a6b9e23ac081b
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 13 05:32:26 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Tue Oct 20 20:41:50 2026 +0000

    avfilter/vf_libopencv: stop at the end of the shape file without stepping 
past it
    
    Fixes: XPtsDsDMo2NW
    Fixes: pointer formed two past the mapping
    Pointer formed two past the mapping Replicated through Modified FFmpeg with 
an assertion
    Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24753
---
 libavfilter/vf_libopencv.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index e34bcb9da7..018741a9ab 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -180,7 +180,9 @@ static int read_shape_from_file(int *cols, int *rows, int 
**values, const char *
     pend = buf + size-1;
     for (i = 0; i < *rows; i++) {
         for (j = 0;; j++) {
-            if (p > pend || *p == '\n') {
+            if (p > pend)
+                break;
+            if (*p == '\n') {
                 p++;
                 break;
             } else

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