Merge pull request #4736 from leoetlino/oob

DiscIO: Fix out-of-bounds access in NANDContentDataBuffer
This commit is contained in:
Matthew Parlane 2017-01-24 10:02:09 +13:00 committed by GitHub
commit bd2881ff86
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ bool CNANDContentDataBuffer::GetRange(u32 start, u32 size, u8* buffer)
if (start + size > m_buffer.size())
return false;
std::copy(&m_buffer[start], &m_buffer[start + size], buffer);
std::copy_n(&m_buffer[start], size, buffer);
return true;
}