Core: Fix a possible overflow in EXI_DeviceIPL

m_szBuffer has a size of 256, but addressable range is 0 - 255
This commit is contained in:
Lioncash 2014-07-26 19:06:20 -04:00
parent 6bd5fb3a67
commit 70ba8cfbc2
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ void CEXIIPL::TransferByte(u8& _uByte)
{
if (_uByte != '\0')
m_szBuffer[m_count++] = _uByte;
if ((m_count >= 256) || (_uByte == 0xD))
if (m_count >= 255 || _uByte == 0xD)
{
m_szBuffer[m_count] = 0x00;
NOTICE_LOG(OSREPORT, "%s", m_szBuffer);