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
|
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 = GPR(++ParameterCounter);
|
||||||
Parameter = (Parameter<<32)|GPR(++ParameterCounter);
|
Parameter = (Parameter<<32)|GPR(++ParameterCounter);
|
||||||
|
|
Loading…
Reference in New Issue