This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/5.1 in repository ffmpeg.
commit f415505b8cae871bbe3074750fd3f7f0dffb8ebc Author: Kacper Michajłow <[email protected]> AuthorDate: Mon Dec 8 03:38:56 2025 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Tue May 5 15:20:56 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]
