mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-26 00:34:45 +02:00
VirtualDiscFileSystem: Fix out-of-range array read in fileList
This commit is contained in:
@@ -645,7 +645,7 @@ PSPFileInfo VirtualDiscFileSystem::GetFileInfo(std::string filename) {
|
||||
localtime_r((time_t*)&mtime, &x.mtime);
|
||||
}
|
||||
|
||||
x.startSector = fileList[fileIndex].firstBlock;
|
||||
// x.startSector was set above in "if (fileIndex != -1)".
|
||||
x.numSectors = (x.size+2047)/2048;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user