You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avfilter/f_metadata: use the return value of vsnprintf() to write the argument list
Should fix use-of-uninitialized-value under MSAN. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -201,8 +201,8 @@ static void print_file(AVFilterContext *ctx, const char *msg, ...)
|
||||
va_start(argument_list, msg);
|
||||
if (msg) {
|
||||
char buf[128];
|
||||
vsnprintf(buf, sizeof(buf), msg, argument_list);
|
||||
avio_write(s->avio_context, buf, av_strnlen(buf, sizeof(buf)));
|
||||
int ret = vsnprintf(buf, sizeof(buf), msg, argument_list);
|
||||
avio_write(s->avio_context, buf, ret);
|
||||
}
|
||||
va_end(argument_list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user