diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-07-26 19:06:20 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-07-26 19:06:23 -0400 |
| commit | 70ba8cfbc20ada4eb2be2558dd23aef6eb4c9d73 (patch) | |
| tree | 4af73ea7d5c6dc8bd658e4b24b6149d59cd201e6 | |
| parent | 6bd5fb3a67a7a649533b072e926619a027f2da5f (diff) | |
Core: Fix a possible overflow in EXI_DeviceIPL
m_szBuffer has a size of 256, but addressable range is 0 - 255
| -rw-r--r-- | Source/Core/Core/HW/EXI_DeviceIPL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/HW/EXI_DeviceIPL.cpp b/Source/Core/Core/HW/EXI_DeviceIPL.cpp index dfba7927b0..dcfca8ec58 100644 --- a/Source/Core/Core/HW/EXI_DeviceIPL.cpp +++ b/Source/Core/Core/HW/EXI_DeviceIPL.cpp @@ -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); |
