mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
DiscIO: Add out of bounds checks for blob reading
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user