This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.1 in repository ffmpeg.
commit a1639b73c12d154162290fc72e451496065ce12d Author: Zhao Zhili <[email protected]> AuthorDate: Mon Jul 6 20:17:13 2026 +0800 Commit: Michael Niedermayer <[email protected]> CommitDate: Sat Sep 19 14:27:03 2026 +0200 fftools/opt_common: fix format string bug in print_program_info FFMPEG_CONFIGURATION and FFMPEG_VERSION were concatenated into av_log format strings, so any % in them was interpreted as a conversion specifier and consumed unrelated varargs, causing undefined behavior ranging from garbled output to a segfault on `ffmpeg -version`. Pass both as %s arguments instead. Fixes issue #23662. The FFMPEG_CONFIGURATION fix is based on a patch by FinnRG; the FFMPEG_VERSION case is fixed here as well. Signed-off-by: Zhao Zhili <[email protected]> (cherry picked from commit 160737cf0da1915d8499881a8021d170f927411d) Signed-off-by: Michael Niedermayer <[email protected]> --- fftools/opt_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/opt_common.c b/fftools/opt_common.c index 2c1f956551..e34a29afb9 100644 --- a/fftools/opt_common.c +++ b/fftools/opt_common.c @@ -196,14 +196,14 @@ static void print_program_info(int flags, int level) { const char *indent = flags & INDENT? " " : ""; - av_log(NULL, level, "%s version " FFMPEG_VERSION, program_name); + av_log(NULL, level, "%s version %s", program_name, FFMPEG_VERSION); if (flags & SHOW_COPYRIGHT) av_log(NULL, level, " Copyright (c) %d-%d the FFmpeg developers", program_birth_year, CONFIG_THIS_YEAR); av_log(NULL, level, "\n"); av_log(NULL, level, "%sbuilt with %s\n", indent, CC_IDENT); - av_log(NULL, level, "%sconfiguration: " FFMPEG_CONFIGURATION "\n", indent); + av_log(NULL, level, "%sconfiguration: %s\n", indent, FFMPEG_CONFIGURATION); } static void print_buildconf(int flags, int level) -- 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]
