From f1420472c88bda694f14fa2025657b1ce0c18fe2 Mon Sep 17 00:00:00 2001 From: magumagu Date: Tue, 6 Jan 2015 17:12:31 -0800 Subject: [PATCH] OSREPORT: Fix out-of-bounds string access. --- Source/Core/Core/HLE/HLE_OS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HLE/HLE_OS.cpp b/Source/Core/Core/HLE/HLE_OS.cpp index b350872a2f..b1dc19f218 100644 --- a/Source/Core/Core/HLE/HLE_OS.cpp +++ b/Source/Core/Core/HLE/HLE_OS.cpp @@ -88,7 +88,7 @@ void GetStringVA(std::string& _rOutBuffer, u32 strReg) } else { - if ((string[i-2] == 'l') && (string[i-1] == 'l')) // hax, just seen this on sysmenu osreport + if (string[i-1] == 'l' && string[i-2] == 'l') // hax, just seen this on sysmenu osreport { Parameter = GPR(++ParameterCounter); Parameter = (Parameter<<32)|GPR(++ParameterCounter);