DiscIO: Add out of bounds checks for blob reading

This commit is contained in:
JosJuice
2020-01-13 22:08:44 +01:00
parent 31d7b56c19
commit 297b790e4f
4 changed files with 15 additions and 0 deletions

View File

@ -49,6 +49,9 @@ u64 CISOFileReader::GetRawSize() const
bool CISOFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr)
{
if (offset + nbytes > GetDataSize())
return false;
while (nbytes != 0)
{
u64 const block = offset / m_block_size;