From 45446c05694f7468623c561cadb4ac14b973675b Mon Sep 17 00:00:00 2001 From: "seer-by-sentry[bot]" <157164994+seer-by-sentry[bot]@users.noreply.github.com> Date: Sun, 4 Jan 2026 12:14:56 +0000 Subject: [PATCH] Use vsnprintf for safe debug string formatting --- Core/Libraries/Source/debug/debug_debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Libraries/Source/debug/debug_debug.cpp b/Core/Libraries/Source/debug/debug_debug.cpp index 77049750322..d04148c7423 100644 --- a/Core/Libraries/Source/debug/debug_debug.cpp +++ b/Core/Libraries/Source/debug/debug_debug.cpp @@ -1254,7 +1254,7 @@ void Debug::StartOutput(DebugIOInterface::StringType type, const char *fmt, ...) // potentially dangerous (fixed string buffer...) va_list va; va_start(va,fmt); - wvsprintf(curSource,fmt,va); + vsnprintf(curSource,sizeof(curSource),fmt,va); va_end(va); __ASSERT(curSource[sizeof(curSource)-1]==0); }