mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Don't read data more than data size of pgd files.
This commit is contained in:
1 parent
6c9b9b54b7
commit
766bd8e6bb
1 file changed
+2
@@ -967,6 +967,8 @@ static u32 npdrmRead(FileNode *f, u8 *data, int size) {
|
||||
block = pgd->file_offset/pgd->block_size;
|
||||
offset = pgd->file_offset%pgd->block_size;
|
||||
|
||||
if (size > pgd->data_size)
|
||||
size = pgd->data_size;
|
||||
remain_size = size;
|
||||
|
||||
while(remain_size){
|
||||
|
||||
Reference in new issue
Block a user