From 70ba8cfbc20ada4eb2be2558dd23aef6eb4c9d73 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 26 Jul 2014 19:06:20 -0400 Subject: [PATCH] Core: Fix a possible overflow in EXI_DeviceIPL m_szBuffer has a size of 256, but addressable range is 0 - 255 --- Source/Core/Core/HW/EXI_DeviceIPL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);