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

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

commit d7a8d211e56b7d72d3d0b18d29dd58c6e29a8bd9
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Mon Dec 8 03:38:56 2025 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue May 5 18:54:54 2026 +0200

    avfilter/vf_libopencv: make sure there is space for null-terminator in 
shape_str
    
    Fixes: warning: 'sscanf' may overflow; destination buffer in argument 7 has 
size 32, but the corresponding specifier may require size 33 [-Wfortify-source]
    Signed-off-by: Kacper Michajłow <[email protected]>
    (cherry picked from commit cca872b6fdee84e423404d79b9afee51e7cc2382)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_libopencv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index 8128030b8c..635a3bec50 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -220,7 +220,7 @@ static int parse_iplconvkernel(IplConvKernel **kernel, char 
*buf, void *log_ctx)
     int cols = 0, rows = 0, anchor_x = 0, anchor_y = 0, shape = CV_SHAPE_RECT;
     int *values = NULL, ret = 0;
 
-    sscanf(buf, "%dx%d+%dx%d/%32[^=]=%127s", &cols, &rows, &anchor_x, 
&anchor_y, shape_str, shape_filename);
+    sscanf(buf, "%dx%d+%dx%d/%31[^=]=%127s", &cols, &rows, &anchor_x, 
&anchor_y, shape_str, shape_filename);
 
     if      (!strcmp(shape_str, "rect"   )) shape = CV_SHAPE_RECT;
     else if (!strcmp(shape_str, "cross"  )) shape = CV_SHAPE_CROSS;

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

Reply via email to