This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/6.1 in repository ffmpeg.
commit b8b30d90a5fe402ccc0f71fe30225ec2fc86088a Author: Kacper Michajłow <[email protected]> AuthorDate: Mon Dec 8 03:38:56 2025 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Mon May 4 17:13:11 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 86407d18eb..9912fc802d 100644 --- a/libavfilter/vf_libopencv.c +++ b/libavfilter/vf_libopencv.c @@ -209,7 +209,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]
