mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-21 20:03:25 +02:00
vfs_concat: verify short read
This commit is contained in:
parent
b0beca52a3
commit
e5f1b22e16
@ -168,6 +168,11 @@ std::size_t ConcatenatedVfsFile::Read(u8* data, std::size_t length, std::size_t
|
|||||||
cur_offset += actual_read_size;
|
cur_offset += actual_read_size;
|
||||||
cur_length -= actual_read_size;
|
cur_length -= actual_read_size;
|
||||||
it++;
|
it++;
|
||||||
|
|
||||||
|
// If we encountered a short read, we're done.
|
||||||
|
if (actual_read_size < intended_read_size) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return cur_offset - offset;
|
return cur_offset - offset;
|
||||||
|
Loading…
Reference in New Issue
Block a user