From e1bbbc72c9b6dc1caa349e2e2aac54a9e21a1d9b Mon Sep 17 00:00:00 2001 From: Amber Brault Date: Sat, 7 Dec 2024 23:01:58 -0500 Subject: [PATCH] Fix substr memcpy issue --- Source/Core/Core/PowerPC/CWDemangler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/CWDemangler.cpp b/Source/Core/Core/PowerPC/CWDemangler.cpp index 5e224fb142..8ea551687b 100644 --- a/Source/Core/Core/PowerPC/CWDemangler.cpp +++ b/Source/Core/Core/PowerPC/CWDemangler.cpp @@ -144,7 +144,7 @@ CWDemangler::demangle_template_args(std::string str, DemangleOptions options) } std::string args = str.substr(start_idx + 1, end_idx - (start_idx + 1)); - str = str.substr(0, start_idx); + str.resize(start_idx); tmpl_args = "<"; while (args != "")