mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
DiscIO: Add out of bounds checks for blob reading
This commit is contained in:
@ -115,6 +115,9 @@ bool WbfsFileReader::ReadHeader()
|
||||
|
||||
bool WbfsFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr)
|
||||
{
|
||||
if (offset + nbytes > GetDataSize())
|
||||
return false;
|
||||
|
||||
while (nbytes)
|
||||
{
|
||||
u64 read_size;
|
||||
|
Reference in New Issue
Block a user