mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 15:51:42 +02:00
OSREPORT: Fix out-of-bounds string access.
This commit is contained in:
parent
a2ec4d5f51
commit
f1420472c8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user