mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
DiscIO: Add out of bounds checks for blob reading
This commit is contained in:
parent
31d7b56c19
commit
297b790e4f
4 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue