mirror of https://github.com/PCSX2/pcsx2.git
Folder memcards: prevent out of bounds access
This commit is contained in:
parent
95e7045db7
commit
1f236cab75
|
@ -560,7 +560,7 @@ MemoryCardFileMetadataReference* FolderMemoryCard::AddFileEntryToMetadataQuickAc
|
||||||
ref->entry = entry;
|
ref->entry = entry;
|
||||||
ref->consecutiveCluster = clusterNumber;
|
ref->consecutiveCluster = clusterNumber;
|
||||||
++clusterNumber;
|
++clusterNumber;
|
||||||
} while ( ( fileCluster = m_fat.data[0][0][fileCluster] ) != ( LastDataCluster | DataClusterInUseMask ) );
|
} while ( ( fileCluster = m_fat.data[0][0][fileCluster & NextDataClusterMask]) != ( LastDataCluster | DataClusterInUseMask ) );
|
||||||
|
|
||||||
return &m_fileMetadataQuickAccess[firstFileCluster & NextDataClusterMask];
|
return &m_fileMetadataQuickAccess[firstFileCluster & NextDataClusterMask];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue