mirror of
https://github.com/libretro/RetroArch.git
synced 2024-10-08 07:03:30 +00:00
(ffmpeg_core.c) passing a format string without the arguments to log_cb
can result in a crash.
This commit is contained in:
parent
94e16e638d
commit
5e5e1e6d50
@ -181,9 +181,14 @@ static struct
|
||||
#ifdef HAVE_SSA
|
||||
static void ass_msg_cb(int level, const char *fmt, va_list args, void *data)
|
||||
{
|
||||
char buffer[4096];
|
||||
(void)data;
|
||||
|
||||
if (level < 6)
|
||||
log_cb(RETRO_LOG_INFO, fmt);
|
||||
{
|
||||
vsnprintf(buffer, sizeof(buffer), fmt, args);
|
||||
log_cb(RETRO_LOG_INFO, "%s\n", buffer);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user