From c5a030e7ab0089a7b5c018c0686273bff139231f Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 15 Jun 2024 23:12:12 +0200 Subject: [PATCH] VideoCommon: Fix format string injection vulnerability from leaderboards --- Source/Core/VideoCommon/OnScreenUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/OnScreenUI.cpp b/Source/Core/VideoCommon/OnScreenUI.cpp index d3a3c7397d..15e90df60f 100644 --- a/Source/Core/VideoCommon/OnScreenUI.cpp +++ b/Source/Core/VideoCommon/OnScreenUI.cpp @@ -389,7 +389,7 @@ void OnScreenUI::DrawChallengesAndLeaderboards() ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoFocusOnAppearing)) { for (const auto& value : leaderboard_progress) - ImGui::Text(value.data()); + ImGui::TextUnformatted(value.c_str()); } ImGui::End(); }